feat: add sample-webapp manifests for Argo CD

This commit is contained in:
Argo CD Setup
2026-02-01 19:18:50 +00:00
parent a4fd50c451
commit ad75d157a7
4 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: sample-webapp-html
namespace: sample
labels:
app: sample-webapp
managed-by: argocd
data:
index.html: |
<!DOCTYPE html>
<html>
<head><title>Sample Web App</title></head>
<body>
<h1>Sample Web App</h1>
<p>Managed by Argo CD - GitOps is working!</p>
</body>
</html>

View File

@@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: sample-webapp
namespace: sample
labels:
app: sample-webapp
managed-by: argocd
spec:
replicas: 2
selector:
matchLabels:
app: sample-webapp
template:
metadata:
labels:
app: sample-webapp
spec:
containers:
- name: nginx
image: nginx:alpine
ports:
- containerPort: 80
resources:
requests:
memory: "32Mi"
cpu: "10m"
limits:
memory: "64Mi"
cpu: "100m"
volumeMounts:
- name: html
mountPath: /usr/share/nginx/html
volumes:
- name: html
configMap:
name: sample-webapp-html

View File

@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- configmap.yaml
- deployment.yaml
- service.yaml

View File

@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: sample-webapp
namespace: sample
labels:
app: sample-webapp
managed-by: argocd
spec:
selector:
app: sample-webapp
ports:
- port: 80
targetPort: 80