---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: app
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
ingressClassName: nginx
tls:
- secretName: tls-app
hosts:
- "$BASE_URL"
rules:
- host: "$BASE_URL"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
port:
name: http
apiVersion: v1
kind: Service
labels:
app: app
selector:
ports:
- name: http
port: 80
targetPort: http
apiVersion: apps/v1
kind: Deployment
replicas: $NB_REPLICAS
matchLabels:
template:
imagePullSecrets:
- name: regcred
containers:
- name: app
image: "$IMAGEAPP"
imagePullPolicy: Always
containerPort: 80