Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/test/kubernetes/thinkphp/templates/deployment.yaml
Views: 11655
apiVersion: apps/v11kind: Deployment2metadata:3name: {{ include "thinkphp.fullname" . }}4labels:5{{- include "thinkphp.labels" . | nindent 4 }}6spec:7{{- if not .Values.autoscaling.enabled }}8replicas: {{ .Values.replicaCount }}9{{- end }}10selector:11matchLabels:12{{- include "thinkphp.selectorLabels" . | nindent 6 }}13template:14metadata:15{{- with .Values.podAnnotations }}16annotations:17{{- toYaml . | nindent 8 }}18{{- end }}19labels:20{{- include "thinkphp.selectorLabels" . | nindent 8 }}21spec:22{{- with .Values.imagePullSecrets }}23imagePullSecrets:24{{- toYaml . | nindent 8 }}25{{- end }}26serviceAccountName: {{ include "thinkphp.serviceAccountName" . }}27securityContext:28{{- toYaml .Values.podSecurityContext | nindent 8 }}29containers:30- name: {{ .Chart.Name }}31securityContext:32{{- toYaml .Values.securityContext | nindent 12 }}33image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"34imagePullPolicy: {{ .Values.image.pullPolicy }}35ports:36- name: http37containerPort: {{ .Values.image.containerPort }}38protocol: TCP39livenessProbe:40httpGet:41path: /42port: http43readinessProbe:44httpGet:45path: /46port: http47resources:48{{- toYaml .Values.resources | nindent 12 }}49{{- with .Values.nodeSelector }}50nodeSelector:51{{- toYaml . | nindent 8 }}52{{- end }}53{{- with .Values.affinity }}54affinity:55{{- toYaml . | nindent 8 }}56{{- end }}57{{- with .Values.tolerations }}58tolerations:59{{- toYaml . | nindent 8 }}60{{- end }}616263