58 lines
No EOL
1 KiB
YAML
58 lines
No EOL
1 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: helloworld-deployment
|
|
labels:
|
|
app: helloworld
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
app: helloworld
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: helloworld
|
|
spec:
|
|
containers:
|
|
- name: helloworld
|
|
image: testcontainers/helloworld
|
|
ports:
|
|
- containerPort: 8080
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: helloworld-service
|
|
spec:
|
|
selector:
|
|
app: helloworld
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|
|
targetPort: 8080
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: helloworld-ingress
|
|
annotations:
|
|
kubernetes.io/ingress.class: nginx
|
|
cert-manager.io/cluster-issuer: letsencrypt-staging
|
|
spec:
|
|
rules:
|
|
- host: "lb1.yolokube.de"
|
|
http:
|
|
paths:
|
|
- pathType: Prefix
|
|
path: "/"
|
|
backend:
|
|
service:
|
|
name: helloworld-service
|
|
port:
|
|
number: 80
|
|
tls:
|
|
- hosts:
|
|
- lb1.yolokube.de
|
|
secretName: helloworld-cert |