summaryrefslogtreecommitdiff
path: root/gemfeed/examples/conf/f3s/example-apache
diff options
context:
space:
mode:
Diffstat (limited to 'gemfeed/examples/conf/f3s/example-apache')
-rw-r--r--gemfeed/examples/conf/f3s/example-apache/Justfile12
-rw-r--r--gemfeed/examples/conf/f3s/example-apache/helm-chart/Chart.yaml5
-rw-r--r--gemfeed/examples/conf/f3s/example-apache/helm-chart/README.md11
-rw-r--r--gemfeed/examples/conf/f3s/example-apache/helm-chart/templates/apache-deployment.yaml21
-rw-r--r--gemfeed/examples/conf/f3s/example-apache/helm-chart/templates/apache-ingress.yaml40
-rw-r--r--gemfeed/examples/conf/f3s/example-apache/helm-chart/templates/apache-service.yaml16
6 files changed, 105 insertions, 0 deletions
diff --git a/gemfeed/examples/conf/f3s/example-apache/Justfile b/gemfeed/examples/conf/f3s/example-apache/Justfile
new file mode 100644
index 00000000..579b9253
--- /dev/null
+++ b/gemfeed/examples/conf/f3s/example-apache/Justfile
@@ -0,0 +1,12 @@
+NAMESPACE := "test"
+RELEASE_NAME := "example-apache"
+CHART_PATH := "./helm-chart"
+
+install:
+ helm install {{RELEASE_NAME}} {{CHART_PATH}} --namespace {{NAMESPACE}} --create-namespace
+
+upgrade:
+ helm upgrade {{RELEASE_NAME}} {{CHART_PATH}} --namespace {{NAMESPACE}}
+
+delete:
+ helm uninstall {{RELEASE_NAME}} --namespace {{NAMESPACE}}
diff --git a/gemfeed/examples/conf/f3s/example-apache/helm-chart/Chart.yaml b/gemfeed/examples/conf/f3s/example-apache/helm-chart/Chart.yaml
new file mode 100644
index 00000000..6d496436
--- /dev/null
+++ b/gemfeed/examples/conf/f3s/example-apache/helm-chart/Chart.yaml
@@ -0,0 +1,5 @@
+apiVersion: v2
+name: apache
+description: A Helm chart for deploying Apache
+version: 0.1.0
+appVersion: "1.0"
diff --git a/gemfeed/examples/conf/f3s/example-apache/helm-chart/README.md b/gemfeed/examples/conf/f3s/example-apache/helm-chart/README.md
new file mode 100644
index 00000000..4eb16d4f
--- /dev/null
+++ b/gemfeed/examples/conf/f3s/example-apache/helm-chart/README.md
@@ -0,0 +1,11 @@
+# Apache Helm Chart
+
+This chart deploys a simple Apache web server.
+
+## Installing the Chart
+
+To install the chart with the release name `my-release`, run the following command:
+
+```bash
+helm install example-apache . --namespace test --create-namespace
+``` \ No newline at end of file
diff --git a/gemfeed/examples/conf/f3s/example-apache/helm-chart/templates/apache-deployment.yaml b/gemfeed/examples/conf/f3s/example-apache/helm-chart/templates/apache-deployment.yaml
new file mode 100644
index 00000000..364de1da
--- /dev/null
+++ b/gemfeed/examples/conf/f3s/example-apache/helm-chart/templates/apache-deployment.yaml
@@ -0,0 +1,21 @@
+# Apache HTTP Server Deployment
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: apache-deployment
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: apache
+ template:
+ metadata:
+ labels:
+ app: apache
+ spec:
+ containers:
+ - name: apache
+ image: httpd:latest
+ ports:
+ # Container port where Apache listens
+ - containerPort: 80
diff --git a/gemfeed/examples/conf/f3s/example-apache/helm-chart/templates/apache-ingress.yaml b/gemfeed/examples/conf/f3s/example-apache/helm-chart/templates/apache-ingress.yaml
new file mode 100644
index 00000000..aa575edd
--- /dev/null
+++ b/gemfeed/examples/conf/f3s/example-apache/helm-chart/templates/apache-ingress.yaml
@@ -0,0 +1,40 @@
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: apache-ingress
+ 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/gemfeed/examples/conf/f3s/example-apache/helm-chart/templates/apache-service.yaml b/gemfeed/examples/conf/f3s/example-apache/helm-chart/templates/apache-service.yaml
new file mode 100644
index 00000000..93b24acb
--- /dev/null
+++ b/gemfeed/examples/conf/f3s/example-apache/helm-chart/templates/apache-service.yaml
@@ -0,0 +1,16 @@
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: apache
+ name: apache-service
+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