From bddf50f0b991b8ef04d51b7838cc84773342ecea Mon Sep 17 00:00:00 2001 From: Michael O'Brien Date: Thu, 5 Dec 2024 11:07:25 -0500 Subject: [PATCH] #2 - initial cert-manager --- src/kubernetes/sample-deployment.yaml | 20 ++++++++++++++++++++ src/kubernetes/sample-ingress.yaml | 23 +++++++++++++++++++++++ src/kubernetes/sample-services.yaml | 11 +++++++++++ 3 files changed, 54 insertions(+) create mode 100644 src/kubernetes/sample-deployment.yaml create mode 100644 src/kubernetes/sample-ingress.yaml create mode 100644 src/kubernetes/sample-services.yaml diff --git a/src/kubernetes/sample-deployment.yaml b/src/kubernetes/sample-deployment.yaml new file mode 100644 index 0000000..4979232 --- /dev/null +++ b/src/kubernetes/sample-deployment.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: kuard +spec: + selector: + matchLabels: + app: kuard + replicas: 1 + template: + metadata: + labels: + app: kuard + spec: + containers: + - image: gcr.io/kuar-demo/kuard-amd64:1 + imagePullPolicy: Always + name: kuard + ports: + - containerPort: 8080 \ No newline at end of file diff --git a/src/kubernetes/sample-ingress.yaml b/src/kubernetes/sample-ingress.yaml new file mode 100644 index 0000000..80e2065 --- /dev/null +++ b/src/kubernetes/sample-ingress.yaml @@ -0,0 +1,23 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: kuard + annotations: {} + #cert-manager.io/issuer: "letsencrypt-staging" +spec: + ingressClassName: nginx + tls: + - hosts: + - example.example.com + secretName: quickstart-example-tls + rules: + - host: example.example.com + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: kuard + port: + number: 80 \ No newline at end of file diff --git a/src/kubernetes/sample-services.yaml b/src/kubernetes/sample-services.yaml new file mode 100644 index 0000000..c87d00e --- /dev/null +++ b/src/kubernetes/sample-services.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: kuard +spec: + ports: + - port: 80 + targetPort: 8080 + protocol: TCP + selector: + app: kuard \ No newline at end of file