aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--apps/hello-world/deployment.yaml27
-rw-r--r--apps/hello-world/kustomization.yaml8
-rw-r--r--apps/hello-world/namespace.yaml6
-rw-r--r--apps/hello-world/service.yaml14
4 files changed, 55 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"]
+...
diff --git a/apps/hello-world/kustomization.yaml b/apps/hello-world/kustomization.yaml
new file mode 100644
index 0000000..47c9c45
--- /dev/null
+++ b/apps/hello-world/kustomization.yaml
@@ -0,0 +1,8 @@
+---
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+namespace: hello-world
+resources:
+ - namespace.yaml
+ - deployment.yaml
+ - service.yaml
diff --git a/apps/hello-world/namespace.yaml b/apps/hello-world/namespace.yaml
new file mode 100644
index 0000000..3f02339
--- /dev/null
+++ b/apps/hello-world/namespace.yaml
@@ -0,0 +1,6 @@
+---
+apiVersion: v1
+kind: Namespace
+metadata:
+ name: hello-world
+...
diff --git a/apps/hello-world/service.yaml b/apps/hello-world/service.yaml
new file mode 100644
index 0000000..c93f494
--- /dev/null
+++ b/apps/hello-world/service.yaml
@@ -0,0 +1,14 @@
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: hello-world
+ namespace: hello-world
+spec:
+ selector:
+ app: hello-world
+ ports:
+ - port: 80
+ targetPort: 80
+ type: ClusterIP
+...
64135d9d53a4dbe0a&follow=1'>Delete .idea directoryClyhtsuriva4-28/+0 2021-06-26UpdateClyhtsuriva50-84/+84 2021-06-26Changed the architecture to respect maven and generated an empty javadocClyhtsuriva129-23/+7829 2021-06-26Add reset, pause, quit functionalitysaid belhadj46-18/+100 2021-06-26Adding the pom.xml and target folder created from mvn package.Clyhtsuriva6-0/+164 2021-06-26Add the possibility to listen a song thanks to Audio System librarysaid belhadj7-4/+55 2021-06-25Fixing STZ-0004 issue.Clyhtsuriva1-1/+3 2021-06-17Delete initial_class_diagram.pngClyhtsuriva1-0/+0