summaryrefslogtreecommitdiff
path: root/f3s/apache/helm-chart/templates
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-27 21:00:12 +0200
committerPaul Buetow <paul@buetow.org>2026-01-27 21:00:12 +0200
commit94c0db2c8badc141ed9f35ade9f5f47bad8b3fc7 (patch)
tree1562dbceb91a2eb92090389c0d04e33e42966eda /f3s/apache/helm-chart/templates
parent55a69e2dd06523cf7f466fd21e4e14c04ac3a3e8 (diff)
add apache
Diffstat (limited to 'f3s/apache/helm-chart/templates')
-rw-r--r--f3s/apache/helm-chart/templates/apache-deployment.yaml41
-rw-r--r--f3s/apache/helm-chart/templates/apache-ingress.yaml41
-rw-r--r--f3s/apache/helm-chart/templates/apache-persistent-volume.yaml28
-rw-r--r--f3s/apache/helm-chart/templates/apache-service.yaml17
4 files changed, 127 insertions, 0 deletions
diff --git a/f3s/apache/helm-chart/templates/apache-deployment.yaml b/f3s/apache/helm-chart/templates/apache-deployment.yaml
new file mode 100644
index 0000000..aa9e65a
--- /dev/null
+++ b/f3s/apache/helm-chart/templates/apache-deployment.yaml
@@ -0,0 +1,41 @@
+# Apache HTTP Server Deployment
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: apache-deployment
+ namespace: test
+spec:
+ replicas: 2
+ selector:
+ matchLabels:
+ app: apache
+ template:
+ metadata:
+ labels:
+ app: apache
+ spec:
+ containers:
+ - name: apache
+ image: httpd:latest
+ ports:
+ # Container port where Apache listens
+ - containerPort: 80
+ readinessProbe:
+ httpGet:
+ path: /
+ port: 80
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ livenessProbe:
+ httpGet:
+ path: /
+ port: 80
+ initialDelaySeconds: 15
+ periodSeconds: 10
+ volumeMounts:
+ - name: apache-htdocs
+ mountPath: /usr/local/apache2/htdocs/
+ volumes:
+ - name: apache-htdocs
+ persistentVolumeClaim:
+ claimName: apache-pvc
diff --git a/f3s/apache/helm-chart/templates/apache-ingress.yaml b/f3s/apache/helm-chart/templates/apache-ingress.yaml
new file mode 100644
index 0000000..b26f95b
--- /dev/null
+++ b/f3s/apache/helm-chart/templates/apache-ingress.yaml
@@ -0,0 +1,41 @@
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: apache-ingress
+ namespace: test
+ namespace: test
+ annotations:
+ spec.ingressClassName: traefik
+ traefik.ingress.kubernetes.io/router.entrypoints: web
+spec:
+ rules:
+ - host: f3s.buetow.org
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: apache-service
+ port:
+ number: 80
+ - host: standby.f3s.buetow.org
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: apache-service
+ port:
+ number: 80
+ - host: www.f3s.buetow.org
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: apache-service
+ port:
+ number: 80
diff --git a/f3s/apache/helm-chart/templates/apache-persistent-volume.yaml b/f3s/apache/helm-chart/templates/apache-persistent-volume.yaml
new file mode 100644
index 0000000..b04c06f
--- /dev/null
+++ b/f3s/apache/helm-chart/templates/apache-persistent-volume.yaml
@@ -0,0 +1,28 @@
+apiVersion: v1
+kind: PersistentVolume
+metadata:
+ name: apache-pv
+spec:
+ capacity:
+ storage: 1Gi
+ volumeMode: Filesystem
+ accessModes:
+ - ReadWriteMany
+ persistentVolumeReclaimPolicy: Retain
+ hostPath:
+ path: /data/nfs/k3svolumes/apache
+ type: Directory
+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: apache-pvc
+ namespace: test
+spec:
+ storageClassName: ""
+ volumeName: apache-pv
+ accessModes:
+ - ReadWriteMany
+ resources:
+ requests:
+ storage: 1Gi
diff --git a/f3s/apache/helm-chart/templates/apache-service.yaml b/f3s/apache/helm-chart/templates/apache-service.yaml
new file mode 100644
index 0000000..1105e3a
--- /dev/null
+++ b/f3s/apache/helm-chart/templates/apache-service.yaml
@@ -0,0 +1,17 @@
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: apache
+ name: apache-service
+ namespace: test
+spec:
+ ports:
+ - name: web
+ port: 80
+ protocol: TCP
+ # Expose port 80 on the service
+ targetPort: 80
+ selector:
+ # Link this service to pods with the label app=apache
+ app: apache