This commit is contained in:
Kasper Juul Hermansen 2022-05-08 16:58:26 +02:00
commit 21c57550c1
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

47
clank/apps/test/app.yaml Normal file
View File

@ -0,0 +1,47 @@
apiVersion: v1
kind: Service
metadata:
name: test-service
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
run: test
---
apiVersion: v1
kind: Pod
metadata:
labels:
run: test
name: test
spec:
containers:
- image: nginx
name: test
ports:
- containerPort: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nginx-ingress
annotations:
traefik.ingress.kubernetes.io/router.tls: "true"
traefik.ingress.kubernetes.io/router.tls.certresolver: le
spec:
tls:
- hosts:
- test.kjuulh.app
rules:
- host: test.kjuulh.app
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: test-service
port:
number: 80