From 1b5b620cde8064892522849d5e9380046e40cca8 Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Wed, 29 Apr 2026 20:48:27 +0200 Subject: add hello-world test app --- apps/hello-world/deployment.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 apps/hello-world/deployment.yaml (limited to 'apps/hello-world/deployment.yaml') diff --git a/apps/hello-world/deployment.yaml b/apps/hello-world/deployment.yaml new file mode 100644 index 0000000..29f3709 --- /dev/null +++ b/apps/hello-world/deployment.yaml @@ -0,0 +1,27 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hello-world + namespace: hello-world +spec: + replicas: 2 + selector: + matchLabels: + app: hello-world + template: + metadata: + labels: + app: hello-world + spec: + containers: + - name: nginx + image: nginx:alpine + ports: + - containerPort: 80 + # Add a custom index page + lifecycle: + postStart: + exec: + command: ["/bin/sh", "-c", "echo '

Hello from GitOps! 🚀

Deployed via ArgoCD at '$(date)'

' > /usr/share/nginx/html/index.html"] +... -- cgit v1.2.3