init
This commit is contained in:
7
helm/nginx/templates/_helpers.tpl
Normal file
7
helm/nginx/templates/_helpers.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
{{- define "nginx.name" -}}
|
||||
nginx
|
||||
{{- end -}}
|
||||
|
||||
{{- define "nginx.fullname" -}}
|
||||
{{ include "nginx.name" . }}
|
||||
{{- end -}}
|
||||
22
helm/nginx/templates/deployment.yaml
Normal file
22
helm/nginx/templates/deployment.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: { { include "nginx.fullname" . } }
|
||||
labels:
|
||||
app: { { include "nginx.name" . } }
|
||||
spec:
|
||||
replicas: { { .Values.replicaCount } }
|
||||
selector:
|
||||
matchLabels:
|
||||
app: { { include "nginx.name" . } }
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: { { include "nginx.name" . } }
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: { { .Values.image.pullPolicy } }
|
||||
ports:
|
||||
- containerPort: 80
|
||||
11
helm/nginx/templates/service.yaml
Normal file
11
helm/nginx/templates/service.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: { { include "nginx.fullname" . } }
|
||||
spec:
|
||||
type: { { .Values.service.type } }
|
||||
ports:
|
||||
- port: { { .Values.service.port } }
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: { { include "nginx.name" . } }
|
||||
Reference in New Issue
Block a user