This commit is contained in:
2026-03-26 18:58:53 +07:00
commit 38ecc2ad24
12 changed files with 225 additions and 0 deletions

5
helm/nginx/Chart.yaml Normal file
View File

@@ -0,0 +1,5 @@
apiVersion: v2
name: nginx
version: 0.1.0
description: Custom nginx with config
appVersion: "1.25"

View File

@@ -0,0 +1,7 @@
{{- define "nginx.name" -}}
nginx
{{- end -}}
{{- define "nginx.fullname" -}}
{{ include "nginx.name" . }}
{{- end -}}

View 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

View 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
View 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