apiVersion: apps/v1 kind: Deployment metadata: name: ohmyform-ui namespace: {{ .namespace }} spec: replicas: 1 strategy: type: RollingUpdate selector: matchLabels: component: ui template: metadata: labels: component: ui spec: securityContext: runAsNonRoot: true runAsUser: 9999 runAsGroup: 9999 seccompProfile: type: RuntimeDefault containers: - name: ui image: ohmyform/ui:1.0.3 ports: - name: http containerPort: 4000 protocol: TCP env: - name: PORT value: "4000" - name: ENDPOINT value: "https://{{ .domain }}/graphql" - name: SERVER_ENDPOINT value: "http://ohmyform-api:3000/graphql" resources: limits: cpu: "500m" memory: 256Mi ephemeral-storage: 512Mi requests: cpu: 50m memory: 64Mi ephemeral-storage: 50Mi livenessProbe: httpGet: path: / port: 4000 initialDelaySeconds: 30 timeoutSeconds: 5 periodSeconds: 15 failureThreshold: 6 readinessProbe: httpGet: path: / port: 4000 initialDelaySeconds: 15 timeoutSeconds: 3 periodSeconds: 10 failureThreshold: 3 securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: false restartPolicy: Always