github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/nyancat/templates/deployment.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: {{ include "nyancat.fullname" . }} 5 labels: 6 {{- include "nyancat.labels" . | nindent 4 }} 7 spec: 8 {{- if not .Values.autoscaling.enabled }} 9 replicas: {{ .Values.replicaCount }} 10 {{- end }} 11 selector: 12 matchLabels: 13 {{- include "nyancat.selectorLabels" . | nindent 6 }} 14 template: 15 metadata: 16 {{- with .Values.podAnnotations }} 17 annotations: 18 {{- toYaml . | nindent 8 }} 19 {{- end }} 20 labels: 21 {{- include "nyancat.selectorLabels" . | nindent 8 }} 22 spec: 23 {{- with .Values.imagePullSecrets }} 24 imagePullSecrets: 25 {{- toYaml . | nindent 8 }} 26 {{- end }} 27 serviceAccountName: {{ include "nyancat.serviceAccountName" . }} 28 securityContext: 29 {{- toYaml .Values.podSecurityContext | nindent 8 }} 30 containers: 31 - name: {{ .Chart.Name }} 32 securityContext: 33 {{- toYaml .Values.securityContext | nindent 12 }} 34 image: "{{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" 35 imagePullPolicy: {{ .Values.image.pullPolicy }} 36 ports: 37 - name: http 38 containerPort: 8087 39 protocol: TCP 40 livenessProbe: 41 httpGet: 42 path: / 43 port: http 44 readinessProbe: 45 httpGet: 46 path: / 47 port: http 48 resources: 49 {{- toYaml .Values.resources | nindent 12 }} 50 {{- with .Values.nodeSelector }} 51 nodeSelector: 52 {{- toYaml . | nindent 8 }} 53 {{- end }} 54 {{- with .Values.affinity }} 55 affinity: 56 {{- toYaml . | nindent 8 }} 57 {{- end }} 58 {{- with .Values.tolerations }} 59 tolerations: 60 {{- toYaml . | nindent 8 }} 61 {{- end }}