Try to add new app
This commit is contained in:
parent
e445126f2b
commit
b73602ba21
21
argocd-apps/app-3.yaml
Normal file
21
argocd-apps/app-3.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: app-3
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: sandbox
|
||||
source:
|
||||
repoURL: https://git.dvirlabs.com/dvirlabs/sandbox.git
|
||||
targetRevision: HEAD
|
||||
path: charts/nginx-message-3
|
||||
helm:
|
||||
valueFiles:
|
||||
- ../../manifests/app-3/values.yaml
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: sandbox
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
4
charts/nginx-message-3/Chart.yaml
Normal file
4
charts/nginx-message-3/Chart.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: v2
|
||||
name: nginx-message
|
||||
version: 0.1.0
|
||||
description: Simple NGINX server with custom HTML message
|
||||
7
charts/nginx-message-3/templates/configmap.yaml
Normal file
7
charts/nginx-message-3/templates/configmap.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-html
|
||||
data:
|
||||
index.html: |
|
||||
<html><body><h1>{{ .Values.message }}</h1></body></html>
|
||||
26
charts/nginx-message-3/templates/deployment.yaml
Normal file
26
charts/nginx-message-3/templates/deployment.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount | default 1 }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Release.Name }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ .Release.Name }}
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
- name: html
|
||||
mountPath: /usr/share/nginx/html
|
||||
volumes:
|
||||
- name: html
|
||||
configMap:
|
||||
name: {{ .Release.Name }}-html
|
||||
12
charts/nginx-message-3/templates/service.yaml
Normal file
12
charts/nginx-message-3/templates/service.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
spec:
|
||||
selector:
|
||||
app: {{ .Release.Name }}
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: {{ .Values.service.port }}
|
||||
targetPort: 80
|
||||
type: {{ .Values.service.type }}
|
||||
2
manifests/app-3/cname.yaml
Normal file
2
manifests/app-3/cname.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
enabled: true
|
||||
hostname: chai3.dvirlabs.com
|
||||
8
manifests/app-3/values.yaml
Normal file
8
manifests/app-3/values.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
message: "Am Israel Chai 3"
|
||||
image:
|
||||
repository: nginx
|
||||
tag: latest
|
||||
pullPolicy: IfNotPresent
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 80 # ✅ Required
|
||||
Loading…
x
Reference in New Issue
Block a user