70 lines
1.6 KiB
YAML
70 lines
1.6 KiB
YAML
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: lecoffre-front
|
|
{{if .Values.lecoffreFront.ingress.annotations}}
|
|
annotations:
|
|
{{toYaml .Values.lecoffreFront.ingress.annotations | indent 4 }}
|
|
{{end}}
|
|
spec:
|
|
tls:
|
|
- hosts: {{ .Values.lecoffreFront.ingress.tls.hosts }}
|
|
secretName: {{ .Values.lecoffreFront.ingress.tls.secretName }}
|
|
rules:
|
|
- host: {{ .Values.lecoffreFront.ingress.host }}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
frontend:
|
|
service:
|
|
name: lecoffre-front-svc
|
|
port:
|
|
number: 80
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: lecoffre-front-svc
|
|
labels:
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
name: http
|
|
targetPort: 3001
|
|
selector:
|
|
app: lecoffre-front
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: lecoffre-front
|
|
labels:
|
|
app: lecoffre-front
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: lecoffre-front
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
labels:
|
|
app: lecoffre-front
|
|
spec:
|
|
serviceAccountName: {{ .Values.lecoffreFront.serviceAccountName }}
|
|
imagePullSecrets:
|
|
- name: docker-pull-secret
|
|
containers:
|
|
- name: lecoffre-front
|
|
image: "{{ .Values.lecoffreFront.image.repository }}:{{ .Values.lecoffreFront.image.tag }}"
|
|
{{if .Values.lecoffreFront.resources}}
|
|
resources:
|
|
{{toYaml .Values.lecoffreFront.resources | indent 10}}
|
|
{{end}}
|
|
imagePullPolicy: {{ .Values.lecoffreFront.image.pullPolicy }}
|
|
command: [{{ .Values.lecoffreFront.command }}]
|
|
envFrom:
|
|
- secretRef:
|
|
name: {{ .Values.lecoffreFront.envSecrets }} |