move kustomize
This commit is contained in:
22
kustomize/depl.yml
Normal file
22
kustomize/depl.yml
Normal 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
25
kustomize/ingress.yml
Normal 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"
|
||||
7
kustomize/kustomization.yaml
Normal file
7
kustomize/kustomization.yaml
Normal 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
13
kustomize/svc.yml
Normal 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"
|
||||
Reference in New Issue
Block a user