commit 3c56cfbb6497efed4583178b83072d247b33aa05 Author: Aaron Riedel Date: Wed Sep 7 23:43:39 2022 +0200 initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..e1c560f --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# core deployments \ No newline at end of file diff --git a/ingress-controller.yaml b/ingress-controller.yaml new file mode 100644 index 0000000..c393563 --- /dev/null +++ b/ingress-controller.yaml @@ -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 \ No newline at end of file diff --git a/test-ingress.yaml b/test-ingress.yaml new file mode 100644 index 0000000..14af1c5 --- /dev/null +++ b/test-ingress.yaml @@ -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 \ No newline at end of file