Initail commit

This commit is contained in:
dvirlabs 2025-06-19 11:54:16 +03:00
commit e84b166eb4
14 changed files with 150 additions and 0 deletions

21
argocd-apps/app-1.yaml Normal file
View File

@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: app-1
namespace: argocd
spec:
project: sandbox
source:
repoURL: https://git.dvirlabs.com/dvir/sandbox-apps.git
targetRevision: HEAD
path: charts/nginx-message-1
helm:
valueFiles:
- ../../../manifests/app-1/values.yaml
destination:
server: https://kubernetes.default.svc
namespace: sandbox
syncPolicy:
automated:
prune: true
selfHeal: true

21
argocd-apps/app-2.yaml Normal file
View File

@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: app-2
namespace: argocd
spec:
project: sandbox
source:
repoURL: https://git.dvirlabs.com/dvir/sandbox-apps.git
targetRevision: HEAD
path: charts/nginx-message-2
helm:
valueFiles:
- ../../../manifests/app-2/values.yaml
destination:
server: https://kubernetes.default.svc
namespace: sandbox
syncPolicy:
automated:
prune: true
selfHeal: true

View File

@ -0,0 +1,4 @@
apiVersion: v2
name: nginx-message
version: 0.1.0
description: Simple NGINX server with custom HTML message

View File

@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "nginx-message.fullname" . }}-html
data:
index.html: |
<html><body><h1>{{ .Values.message }}</h1></body></html>

View File

@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "nginx-message.fullname" . }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ include "nginx-message.name" . }}
template:
metadata:
labels:
app: {{ include "nginx-message.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: {{ include "nginx-message.fullname" . }}-html

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "nginx-message.fullname" . }}
spec:
selector:
app: {{ include "nginx-message.name" . }}
ports:
- protocol: TCP
port: {{ .Values.service.port }}
targetPort: 80
type: {{ .Values.service.type }}

View File

@ -0,0 +1,4 @@
apiVersion: v2
name: nginx-message
version: 0.1.0
description: Simple NGINX server with custom HTML message

View File

@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "nginx-message.fullname" . }}-html
data:
index.html: |
<html><body><h1>{{ .Values.message }}</h1></body></html>

View File

@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "nginx-message.fullname" . }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ include "nginx-message.name" . }}
template:
metadata:
labels:
app: {{ include "nginx-message.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: {{ include "nginx-message.fullname" . }}-html

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "nginx-message.fullname" . }}
spec:
selector:
app: {{ include "nginx-message.name" . }}
ports:
- protocol: TCP
port: {{ .Values.service.port }}
targetPort: 80
type: {{ .Values.service.type }}

View File

@ -0,0 +1,2 @@
enabled: true
hostname: chai1.dvirlabs.com

View File

@ -0,0 +1,3 @@
message: "Am Israel Chai 1"
service:
type: ClusterIP

View File

@ -0,0 +1,2 @@
enabled: true
hostname: chai2.dvirlabs.com

View File

@ -0,0 +1,3 @@
message: "Am Israel Chai 2"
service:
type: ClusterIP