github.com/verrazzano/verrazzano@v1.7.0/platform-operator/helm_config/charts/verrazzano-cluster-agent/templates/deployment.yaml (about) 1 # Copyright (c) 2023, 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 name: {{ .Values.name }} 8 namespace: {{ .Values.namespace }} 9 labels: 10 app: {{ .Values.name }} 11 spec: 12 replicas: 1 13 selector: 14 matchLabels: 15 app: {{ .Values.name }} 16 template: 17 metadata: 18 labels: 19 app: {{ .Values.name }} 20 sidecar.istio.io/inject: "false" 21 spec: 22 {{- if .Values.affinity }} 23 affinity: {{ toYaml .Values.affinity | nindent 8 }} 24 {{- end }} 25 containers: 26 - name: {{ .Values.name }} 27 image: {{ .Values.image }} 28 imagePullPolicy: {{ .Values.imagePullPolicy }} 29 ports: 30 - containerPort: 9100 31 name: http-metric 32 protocol: TCP 33 args: 34 - --zap-log-level={{ .Values.logLevel }} 35 - --run-cluster-agent=true 36 resources: 37 requests: 38 memory: {{ .Values.requestMemory }} 39 securityContext: 40 privileged: false 41 allowPrivilegeEscalation: false 42 capabilities: 43 drop: 44 - ALL 45 serviceAccountName: {{ .Values.name }} 46 securityContext: 47 runAsUser: 1000 48 runAsGroup: 999 49 runAsNonRoot: true 50 seccompProfile: 51 type: RuntimeDefault