From 25979b5972c79659654612116271c34d0c1f071e Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Tue, 15 Apr 2025 10:14:12 +0530 Subject: [PATCH] add authelia --- cluster/apps/authelia/authelia-pvc.yml | 13 +++++++++++++ cluster/apps/authelia/authelia-svc.yml | 15 ++++++++++++++ cluster/apps/authelia/authelia.yml | 27 ++++++++++++++++++++++++++ cluster/apps/authelia/tmp-pod.yml | 19 ++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 cluster/apps/authelia/authelia-pvc.yml create mode 100644 cluster/apps/authelia/authelia-svc.yml create mode 100644 cluster/apps/authelia/authelia.yml create mode 100644 cluster/apps/authelia/tmp-pod.yml diff --git a/cluster/apps/authelia/authelia-pvc.yml b/cluster/apps/authelia/authelia-pvc.yml new file mode 100644 index 0000000..0b5e513 --- /dev/null +++ b/cluster/apps/authelia/authelia-pvc.yml @@ -0,0 +1,13 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: longhorn-authelia + namespace: default +spec: + accessModes: + - ReadWriteMany + storageClassName: longhorn + resources: + requests: + storage: 500m diff --git a/cluster/apps/authelia/authelia-svc.yml b/cluster/apps/authelia/authelia-svc.yml new file mode 100644 index 0000000..b9e1d55 --- /dev/null +++ b/cluster/apps/authelia/authelia-svc.yml @@ -0,0 +1,15 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: authelia-service + namespace: default +spec: + type: NodePort + selector: + app: authelia + ports: + - port: 9091 + targetPort: 9091 + nodePort: 9091 + protocol: TCP diff --git a/cluster/apps/authelia/authelia.yml b/cluster/apps/authelia/authelia.yml new file mode 100644 index 0000000..caa4c63 --- /dev/null +++ b/cluster/apps/authelia/authelia.yml @@ -0,0 +1,27 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: authelia + namespace: default +spec: + selector: + matchLabels: + app: authelia + template: + metadata: + labels: + app: authelia + spec: + containers: + - name: authelia + image: authelia/authelia:4 + ports: + - containerPort: 9091 + volumeMounts: + - name: config + mountPath: /config + volumes: + - name: config + persistentVolumeClaim: + claimName: longhorn-authelia diff --git a/cluster/apps/authelia/tmp-pod.yml b/cluster/apps/authelia/tmp-pod.yml new file mode 100644 index 0000000..968edec --- /dev/null +++ b/cluster/apps/authelia/tmp-pod.yml @@ -0,0 +1,19 @@ +--- +apiVersion: v1 +kind: Pod +metadata: + name: ubuntu + labels: + name: ubuntu +spec: + containers: + - name: ubuntu + image: ubuntu:latest + command: ["/bin/bash", "-c", "while true; do sleep 30; done;"] + volumeMounts: + - name: data + mountPath: /mnt + volumes: + - name: data + persistentVolumeClaim: + claimName: longhorn-authelia