github.com/verrazzano/verrazzano@v1.7.0/platform-operator/helm_config/charts/verrazzano-console/templates/console-deployment.yaml (about) 1 # Copyright (c) 2020, 2022, Oracle and/or its affiliates. 2 # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 4 apiVersion: apps/v1 5 kind: Deployment 6 metadata: 7 labels: 8 app: {{ .Values.name }} 9 name: {{ .Values.name }} 10 namespace: {{ .Release.Namespace }} 11 spec: 12 replicas: {{ .Values.replicas }} 13 selector: 14 matchLabels: 15 app: {{ .Values.name }} 16 strategy: 17 rollingUpdate: 18 maxSurge: 1 19 maxUnavailable: 1 20 type: RollingUpdate 21 template: 22 metadata: 23 annotations: 24 sidecar.istio.io/inject: "true" 25 labels: 26 app: {{ .Values.name }} 27 spec: 28 {{- if .Values.affinity }} 29 affinity: {{ toYaml .Values.affinity | nindent 8 }} 30 {{- end }} 31 containers: 32 - image: {{ .Values.imageName }}:{{ .Values.imageTag }} 33 imagePullPolicy: {{ .Values.pullPolicy }} 34 name: {{ .Values.name }} 35 ports: 36 - containerPort: 8000 37 name: http-console 38 protocol: TCP 39 env: 40 - name: VZ_API_URL 41 value: "https://verrazzano.{{ .Values.config.envName }}.{{ .Values.config.dnsSuffix }}" 42 securityContext: 43 privileged: false 44 allowPrivilegeEscalation: false 45 capabilities: 46 drop: 47 - ALL 48 serviceAccountName: {{ .Values.name }} 49 securityContext: 50 runAsUser: 1000 51 runAsGroup: 999 52 runAsNonRoot: true 53 seccompProfile: 54 type: RuntimeDefault