Initial Commit
This commit is contained in:
27
chart/templates/deployment.yaml
Normal file
27
chart/templates/deployment.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Values.appName }}
|
||||
name: {{ .Values.appName }}-deploy
|
||||
spec:
|
||||
replicas: {{ .Values.deployment.replicas }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Values.appName }}
|
||||
svc: web
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Values.appName }}
|
||||
svc: web
|
||||
spec:
|
||||
containers:
|
||||
- image: {{ .Values.deployment.image }}
|
||||
name: {{ .Values.appName }}-web-{{ randAlphaNum 5 | lower }}
|
||||
resources:
|
||||
limits:
|
||||
cpu: {{ .Values.deployment.limitCpu }}
|
||||
memory: {{ .Values.deployment.limitMem }}
|
||||
18
chart/templates/ingress.yaml
Normal file
18
chart/templates/ingress.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Values.appName }}
|
||||
name: {{ .Values.appName }}-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: {{ .Values.domain }}
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: {{ .Values.appName }}-svc
|
||||
port:
|
||||
number: 80
|
||||
path: /
|
||||
pathType: Exact
|
||||
16
chart/templates/service.yaml
Normal file
16
chart/templates/service.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Values.appName }}
|
||||
name: {{ .Values.appName }}-svc
|
||||
spec:
|
||||
ports:
|
||||
- name: 80-80
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: {{ .Values.appName }}
|
||||
svc: web
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user