Setup build
This commit is contained in:
11
manifests/cluster-role-binding.yaml
Normal file
11
manifests/cluster-role-binding.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: authelia-controller
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: authelia-controller
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: authelia-controller
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
20
manifests/cluster-role.yaml
Normal file
20
manifests/cluster-role.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: authelia-controller
|
||||
rules:
|
||||
- apiGroups:
|
||||
- authelia.huizinga.dev
|
||||
resources:
|
||||
- accesscontrolrules
|
||||
- accesscontrolrules/status
|
||||
- accesscontrolrules/finalizers
|
||||
verbs:
|
||||
- "*"
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- secrets
|
||||
- deployments
|
||||
verbs:
|
||||
- "*"
|
||||
36
manifests/deployment.yaml
Normal file
36
manifests/deployment.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: authelia-controller
|
||||
labels:
|
||||
app: authelia-controller
|
||||
app.kubernetes.io/name: authelia-controller
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: authelia-controller
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: authelia-controller
|
||||
annotations:
|
||||
kubectl.kubernetes.io/default-container: authelia-controller
|
||||
spec:
|
||||
serviceAccountName: authelia-controller
|
||||
securityContext: {}
|
||||
containers:
|
||||
- name: authelia-controller
|
||||
image: git.huizinga.dev/dreaded_x/authelia-controller@${DIGEST}
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext: {}
|
||||
resources:
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 256Mi
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 100Mi
|
||||
env:
|
||||
- name: RUST_LOG
|
||||
value: info,authelia_controller=debug
|
||||
9
manifests/kustomization.yaml
Normal file
9
manifests/kustomization.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: lldap
|
||||
resources:
|
||||
- ./crds.yaml
|
||||
- ./service-account.yaml
|
||||
- ./cluster-role.yaml
|
||||
- ./cluster-role-binding.yaml
|
||||
- ./deployment.yaml
|
||||
8
manifests/service-account.yaml
Normal file
8
manifests/service-account.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: authelia-controller
|
||||
labels:
|
||||
app: authelia-controller
|
||||
app.kubernetes.io/name: authelia-controller
|
||||
automountServiceAccountToken: true
|
||||
Reference in New Issue
Block a user