add kustomization.yml
All checks were successful
Web/ip/pipeline/head This commit looks good

This commit is contained in:
Julien Cabillot 2021-03-18 18:03:16 -04:00 committed by Julien Cabillot
parent 79882ede76
commit 291cea689e
4 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: "ip-deployment"
labels:
app: "front"
spec:
template:
metadata:
name: "front-apache"
labels:
owner: "jcabillot"
app: "front"
spec:
containers:
- name: "front-apache"
image: "jcabillot/ip"
replicas: 1
selector:
matchLabels:
app: "front"

View File

@ -0,0 +1,25 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: "ip-deployment"
annotations:
kubernetes.io/ingress.class: "traefik"
traefik.ingress.kubernetes.io/router.entrypoints: "web,websecure"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- "ip.opti.cabillot.eu"
secretName: ipcabilloteu-tls
rules:
- host: "ip.opti.cabillot.eu"
http:
paths:
- path: "/"
pathType: "Prefix"
backend:
service:
name: "ip-deployment"
port:
name: "http"

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- depl.yml
- ingress.yml
- svc.yml

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: 'ip-deployment'
spec:
ports:
- name: "http"
port: 80
protocol: "TCP"
targetPort: 8080
selector:
app: "front"