2019-03-03 22:51:52 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: nginx-ingress-controller-serviceaccount
|
|
|
|
namespace: authelia
|
|
|
|
labels:
|
2019-11-02 14:32:58 +00:00
|
|
|
app: nginx-ingress-controller
|
2019-03-03 22:51:52 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: nginx-ingress-controller-clusterrole
|
|
|
|
labels:
|
2019-11-02 14:32:58 +00:00
|
|
|
app: nginx-ingress-controller
|
2019-03-03 22:51:52 +00:00
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- configmaps
|
|
|
|
- endpoints
|
|
|
|
- nodes
|
|
|
|
- pods
|
|
|
|
- secrets
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- nodes
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- services
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- "extensions"
|
|
|
|
resources:
|
|
|
|
- ingresses
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- events
|
|
|
|
verbs:
|
|
|
|
- create
|
|
|
|
- patch
|
|
|
|
- apiGroups:
|
|
|
|
- "extensions"
|
|
|
|
resources:
|
|
|
|
- ingresses/status
|
|
|
|
verbs:
|
|
|
|
- update
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
|
|
kind: Role
|
|
|
|
metadata:
|
|
|
|
name: nginx-ingress-controller-role
|
|
|
|
namespace: authelia
|
|
|
|
labels:
|
2019-11-02 14:32:58 +00:00
|
|
|
app: nginx-ingress-controller
|
2019-03-03 22:51:52 +00:00
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- configmaps
|
|
|
|
- pods
|
|
|
|
- secrets
|
|
|
|
- namespaces
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- configmaps
|
|
|
|
resourceNames:
|
|
|
|
# Defaults to "<election-id>-<ingress-class>"
|
|
|
|
# Here: "<ingress-controller-leader>-<nginx>"
|
|
|
|
# This has to be adapted if you change either parameter
|
|
|
|
# when launching the nginx-ingress-controller.
|
|
|
|
- "ingress-controller-leader-nginx"
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- update
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- configmaps
|
|
|
|
verbs:
|
|
|
|
- create
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- endpoints
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
|
|
kind: RoleBinding
|
|
|
|
metadata:
|
|
|
|
name: nginx-ingress-controller-role-nisa-binding
|
|
|
|
namespace: authelia
|
|
|
|
labels:
|
2019-11-02 14:32:58 +00:00
|
|
|
app: nginx-ingress-controller
|
2019-03-03 22:51:52 +00:00
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: Role
|
|
|
|
name: nginx-ingress-controller-role
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: nginx-ingress-controller-serviceaccount
|
|
|
|
namespace: authelia
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: nginx-ingress-controller-clusterrole-nisa-binding
|
|
|
|
labels:
|
2019-11-02 14:32:58 +00:00
|
|
|
app: nginx-ingress-controller
|
2019-03-03 22:51:52 +00:00
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: nginx-ingress-controller-clusterrole
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: nginx-ingress-controller-serviceaccount
|
|
|
|
namespace: authelia
|
|
|
|
|
|
|
|
---
|