Add test app

This commit is contained in:
Kasper Juul Hermansen 2022-05-08 18:42:21 +02:00
parent 7b98d28dea
commit 8c1fe434cc
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
2 changed files with 12 additions and 44 deletions

View File

@ -1,44 +0,0 @@
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
spec:
tls:
- hosts:
- test.kjuulh.app
rules:
- host: test.kjuulh.app
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: test-service
port:
number: 80

View File

@ -0,0 +1,12 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
name: podinfo
namespace: flux-system
spec:
interval: 30s
ref:
branch: master
url: https://github.com/stefanprodan/podinfo