From 9e90135b004c7ae32365f85387eb11e7ea2a5aaa Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 1 Jan 2026 19:05:44 -0500 Subject: [PATCH] feat: simple hello service --- templates/HelloService.yml.jinja2 | 51 +++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 templates/HelloService.yml.jinja2 diff --git a/templates/HelloService.yml.jinja2 b/templates/HelloService.yml.jinja2 new file mode 100644 index 0000000..585cfb1 --- /dev/null +++ b/templates/HelloService.yml.jinja2 @@ -0,0 +1,51 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hello-app +spec: + replicas: 2 + selector: + matchLabels: + app: hello + template: + metadata: + labels: + app: hello + spec: + containers: + - name: hello + image: hashicorp/http-echo + args: ["-text=Hello from Kubernetes!"] + ports: + - containerPort: 5678 +--- +apiVersion: v1 +kind: Service +metadata: + name: hello-service +spec: + selector: + app: hello + ports: + - port: 80 + targetPort: 5678 +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: hello-ingress + annotations: + nginx.ingress.kubernetes.io/rewrite-target: / +spec: + ingressClassName: nginx + rules: + - host: hello.maximhutz.com + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: hello-service + port: + number: 80