initial commit

This commit is contained in:
Aaron Riedel 2022-09-07 23:43:39 +02:00
commit 3c56cfbb64
Signed by: aaron
GPG key ID: 643004654D40D577
3 changed files with 63 additions and 0 deletions

1
README.md Normal file
View file

@ -0,0 +1 @@
# core deployments

11
ingress-controller.yaml Normal file
View file

@ -0,0 +1,11 @@
---
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
labels:
app.kubernetes.io/component: controller
name: nginx
annotations:
ingressclass.kubernetes.io/is-default-class: "true"
spec:
controller: k8s.io/ingress-nginx

51
test-ingress.yaml Normal file
View file

@ -0,0 +1,51 @@
---
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
spec:
rules:
- host: "lb1.yolokube.de"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: helloworld-service
port:
number: 80