feat: add sample-webapp manifests for Argo CD
This commit is contained in:
18
apps/sample-webapp/configmap.yaml
Normal file
18
apps/sample-webapp/configmap.yaml
Normal 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>
|
||||||
37
apps/sample-webapp/deployment.yaml
Normal file
37
apps/sample-webapp/deployment.yaml
Normal 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
|
||||||
6
apps/sample-webapp/kustomization.yaml
Normal file
6
apps/sample-webapp/kustomization.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- configmap.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
14
apps/sample-webapp/service.yaml
Normal file
14
apps/sample-webapp/service.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user