Add app-4

This commit is contained in:
dvirlabs 2025-07-20 12:26:54 +03:00
parent 2952e01bd0
commit cdd7395e22
6 changed files with 57 additions and 0 deletions

0
argocd-apps/app-4.yaml Normal file
View File

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: {{ .Release.Name }}-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: {{ .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

View 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 }}

View File

@ -0,0 +1,8 @@
message: "Am Israel Chai 4"
image:
repository: nginx
tag: latest
pullPolicy: IfNotPresent
service:
type: ClusterIP
port: 80 # ✅ Required