k8s/charts/templates/deployment.yaml
Simple_Not 21675089ad
All checks were successful
continuous-integration/drone/push Build is passing
test helm
2023-06-19 22:11:51 +10:00

32 lines
799 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.name }}
labels:
app: nginx
spec:
replicas: {{ .Values.replicaCount }}
namespace: {{ .Values.namespace }}
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 80
protocol: TCP
volumeMounts:
- name: nginx-index-file
mountPath: /usr/share/nginx/html/
volumes:
- name: nginx-index-file
configMap:
name: index-html-configmap