add authelia
This commit is contained in:
13
cluster/apps/authelia/authelia-pvc.yml
Normal file
13
cluster/apps/authelia/authelia-pvc.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: longhorn-authelia
|
||||
namespace: default
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 500m
|
||||
15
cluster/apps/authelia/authelia-svc.yml
Normal file
15
cluster/apps/authelia/authelia-svc.yml
Normal file
@@ -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
|
||||
27
cluster/apps/authelia/authelia.yml
Normal file
27
cluster/apps/authelia/authelia.yml
Normal file
@@ -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
|
||||
19
cluster/apps/authelia/tmp-pod.yml
Normal file
19
cluster/apps/authelia/tmp-pod.yml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user