Compare commits
2 Commits
master
...
f2d3e58948
| Author | SHA1 | Date | |
|---|---|---|---|
|
f2d3e58948
|
|||
|
b75561f589
|
@@ -2,6 +2,7 @@ kind: ClusterRoleBinding
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: authelia-controller
|
name: authelia-controller
|
||||||
|
namespace: authelia
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: authelia-controller
|
name: authelia-controller
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ kind: ClusterRole
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: authelia-controller
|
name: authelia-controller
|
||||||
|
namespace: authelia
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- authelia.huizinga.dev
|
- authelia.huizinga.dev
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: authelia-controller
|
name: authelia-controller
|
||||||
|
namespace: authelia
|
||||||
labels:
|
labels:
|
||||||
app: authelia-controller
|
app: authelia-controller
|
||||||
app.kubernetes.io/name: authelia-controller
|
app.kubernetes.io/name: authelia-controller
|
||||||
@@ -18,12 +19,17 @@ spec:
|
|||||||
kubectl.kubernetes.io/default-container: authelia-controller
|
kubectl.kubernetes.io/default-container: authelia-controller
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: authelia-controller
|
serviceAccountName: authelia-controller
|
||||||
securityContext: {}
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
fsGroup: 1000
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
containers:
|
containers:
|
||||||
- name: authelia-controller
|
- name: authelia-controller
|
||||||
image: '{{ index .images "authelia-controller" }}'
|
image: '{{ index .images "authelia-controller" }}'
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
securityContext: {}
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 200m
|
cpu: 200m
|
||||||
@@ -34,3 +40,9 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: RUST_LOG
|
- name: RUST_LOG
|
||||||
value: info,authelia_controller=debug
|
value: info,authelia_controller=debug
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
runAsNonRoot: true
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: authelia
|
|
||||||
resources:
|
resources:
|
||||||
- ./crds.yaml
|
- namespace.yaml
|
||||||
- ./service-account.yaml
|
- crds.yaml
|
||||||
- ./cluster-role.yaml
|
- service-account.yaml
|
||||||
- ./cluster-role-binding.yaml
|
- cluster-role.yaml
|
||||||
- ./deployment.yaml
|
- cluster-role-binding.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
|||||||
4
manifests/namespace.yaml
Normal file
4
manifests/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: authelia
|
||||||
@@ -2,6 +2,7 @@ apiVersion: v1
|
|||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: authelia-controller
|
name: authelia-controller
|
||||||
|
namespace: authelia
|
||||||
labels:
|
labels:
|
||||||
app: authelia-controller
|
app: authelia-controller
|
||||||
app.kubernetes.io/name: authelia-controller
|
app.kubernetes.io/name: authelia-controller
|
||||||
|
|||||||
Reference in New Issue
Block a user