mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 10:49:15 +00:00
71 lines
1.3 KiB
YAML
71 lines
1.3 KiB
YAML
apiVersion: netbird.io/v1alpha1
|
|||
|
|
kind: ClusterProxy
|
||
|
|
metadata:
|
||
|
|
name: prod
|
||
|
|
namespace: netbird
|
||
|
|
spec:
|
||
|
|
clusterName: prod
|
||
|
|
serviceAccountName: clusterproxy-prod
|
||
|
|
---
|
||
|
|
apiVersion: v1
|
||
|
|
kind: ServiceAccount
|
||
|
|
metadata:
|
||
|
|
name: clusterproxy-prod
|
||
|
|
namespace: netbird
|
||
|
|
---
|
||
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
|
kind: ClusterRole
|
||
|
|
metadata:
|
||
|
|
name: clusterproxy-prod
|
||
|
|
rules:
|
||
|
|
- apiGroups:
|
||
|
|
- ""
|
||
|
|
resources:
|
||
|
|
- users
|
||
|
|
- groups
|
||
|
|
verbs:
|
||
|
|
- impersonate
|
||
|
|
|
||
|
|
- apiGroups:
|
||
|
|
- authentication.k8s.io
|
||
|
|
resources:
|
||
|
|
- userextras/*
|
||
|
|
- uids
|
||
|
|
verbs:
|
||
|
|
- impersonate
|
||
|
|
---
|
||
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
|
kind: ClusterRoleBinding
|
||
|
|
metadata:
|
||
|
|
name: clusterproxy-prod
|
||
|
|
roleRef:
|
||
|
|
apiGroup: rbac.authorization.k8s.io
|
||
|
|
kind: ClusterRole
|
||
|
|
name: clusterproxy-prod
|
||
|
|
subjects:
|
||
|
|
- kind: ServiceAccount
|
||
|
|
name: clusterproxy-prod
|
||
|
|
namespace: netbird
|
||
|
|
---
|
||
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
|
kind: ClusterRole
|
||
|
|
metadata:
|
||
|
|
name: netbird-cluster-reader
|
||
|
|
rules:
|
||
|
|
- apiGroups: ["*"]
|
||
|
|
resources: ["*"]
|
||
|
|
verbs: ["get", "list", "watch"]
|
||
|
|
---
|
||
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
|
kind: ClusterRoleBinding
|
||
|
|
metadata:
|
||
|
|
name: netbird-cluster-reader
|
||
|
|
subjects:
|
||
|
|
- kind: Group
|
||
|
|
name: kubernetes-read
|
||
|
|
apiGroup: rbac.authorization.k8s.io
|
||
|
|
roleRef:
|
||
|
|
kind: ClusterRole
|
||
|
|
name: netbird-cluster-reader
|
||
|
|
apiGroup: rbac.authorization.k8s.io
|