aboutsummaryrefslogtreecommitdiff
path: root/apps/hello-world/deployment.yaml
diff options
context:
space:
mode:
authorclyhtsuriva <aimeric@adjutor.xyz>2026-04-29 20:48:27 +0200
committerclyhtsuriva <aimeric@adjutor.xyz>2026-04-29 20:48:27 +0200
commit1b5b620cde8064892522849d5e9380046e40cca8 (patch)
treea3ed0c27246f0edff408b222c1103b5c4d06a8f8 /apps/hello-world/deployment.yaml
parentc972bb0285d52916403e880a8790c01d9e582a39 (diff)
add hello-world test appHEADmain
Diffstat (limited to 'apps/hello-world/deployment.yaml')
-rw-r--r--apps/hello-world/deployment.yaml27
1 files changed, 27 insertions, 0 deletions
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 '<html><body><h1>Hello from GitOps! 🚀</h1><p>Deployed via ArgoCD at '$(date)'</p></body></html>' > /usr/share/nginx/html/index.html"]
+...