move kustomize

This commit is contained in:
Julien Cabillot
2021-06-24 17:22:28 -04:00
parent 36820d3232
commit d27c5c9684
4 changed files with 0 additions and 0 deletions

22
kustomize/depl.yml Normal file
View File

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

25
kustomize/ingress.yml Normal file
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

13
kustomize/svc.yml Normal file
View File

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