initial demo
This commit is contained in:
5
charts/demo-app/Chart.yaml
Normal file
5
charts/demo-app/Chart.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: v2
|
||||
name: demo-app
|
||||
version: 0.1.0
|
||||
appVersion: "1.0.0"
|
||||
description: Simple GitOps demo app for Argo CD + Helm
|
||||
14
charts/demo-app/templates/configmap.yaml
Normal file
14
charts/demo-app/templates/configmap.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: demo-app-html
|
||||
data:
|
||||
index.html: |
|
||||
<html>
|
||||
<head><title>GitOps Demo</title></head>
|
||||
<body>
|
||||
<h1>Argo CD + Helm Demo</h1>
|
||||
<p>Message: {{ .Values.message }}</p>
|
||||
<p>Image tag: {{ .Values.image.tag }}</p>
|
||||
</body>
|
||||
</html>
|
||||
29
charts/demo-app/templates/deployment.yaml
Normal file
29
charts/demo-app/templates/deployment.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: demo-app
|
||||
labels:
|
||||
app: demo-app
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: demo-app
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: demo-app
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
- name: html
|
||||
mountPath: /usr/share/nginx/html
|
||||
volumes:
|
||||
- name: html
|
||||
configMap:
|
||||
name: demo-app-html
|
||||
13
charts/demo-app/templates/service.yaml
Normal file
13
charts/demo-app/templates/service.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: demo-app
|
||||
labels:
|
||||
app: demo-app
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
selector:
|
||||
app: demo-app
|
||||
ports:
|
||||
- port: {{ .Values.service.port }}
|
||||
targetPort: 80
|
||||
12
charts/demo-app/values.yaml
Normal file
12
charts/demo-app/values.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
replicaCount: 1
|
||||
|
||||
image:
|
||||
repository: nginx
|
||||
tag: "1.25"
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 80
|
||||
|
||||
message: "v1 from git"
|
||||
Reference in New Issue
Block a user