add two simple applications

This commit is contained in:
Mans Ziesel 2024-09-19 19:59:02 +02:00
parent 3595f174e6
commit c52798e957
4 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ip_mziesel_nl
spec:
replicas: 3
revisionHistoryLimit: 3
selector:
matchLabels:
app: ip_mziesel_nl
template:
metadata:
labels:
app: ip_mziesel_nl
spec:
containers:
- image: git.mziesel.nl/mans/ip-svc:2024-06-03
name: ip_mziesel_nl
ports:
- containerPort: 8080

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: ip_mziesel_nl
spec:
type: NodePort
ports:
- port: 8080
targetPort: 8080
nodePort: 31339
selector:
app: ip_mziesel_nl

View File

@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: whoami
spec:
replicas: 3
revisionHistoryLimit: 3
selector:
matchLabels:
app: whoami
template:
metadata:
labels:
app: whoami
spec:
containers:
- image: ghcr.io/traefik/whoami:v1.10.3
name: whoami
ports:
- containerPort: 80

12
whoami/whoami-svc.yaml Normal file
View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: whoami
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 31338
selector:
app: whoami