init
This commit is contained in:
5
helm/nginx/Chart.yaml
Normal file
5
helm/nginx/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: v2
|
||||
name: nginx
|
||||
version: 0.1.0
|
||||
description: Custom nginx with config
|
||||
appVersion: "1.25"
|
||||
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" . } }
|
||||
8
helm/nginx/values.yaml
Normal file
8
helm/nginx/values.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
replicaCount: 1
|
||||
image:
|
||||
repository: git.realmanual.ru/pub/cosign-images
|
||||
tag: 0.1.0
|
||||
pullPolicy: IfNotPresent
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 80
|
||||
Reference in New Issue
Block a user