k3s-addon/templates/ingress-apisix-values.yaml: enable sa rbac
This commit is contained in:
parent
cb7a4ca11c
commit
d32946be14
@ -5,8 +5,10 @@ ingress-controller:
|
||||
serviceNamespace: ingress
|
||||
etcd:
|
||||
replicaCount: 1
|
||||
discovery:
|
||||
enabled: true
|
||||
serviceAccount:
|
||||
create: true
|
||||
rbac:
|
||||
create: true
|
||||
admin:
|
||||
enabled: true
|
||||
gateway:
|
||||
@ -22,3 +24,5 @@ gateway:
|
||||
- {{ ingress_ip }}
|
||||
dashboard:
|
||||
enabled: false
|
||||
discovery:
|
||||
enabled: true
|
||||
|
||||
47
playbook/roles/k3s-addon/templates/kubernetes-discovery.yaml
Normal file
47
playbook/roles/k3s-addon/templates/kubernetes-discovery.yaml
Normal file
@ -0,0 +1,47 @@
|
||||
kind: ServiceAccount
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: apisix-test
|
||||
namespace: default
|
||||
---
|
||||
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: apisix-test
|
||||
rules:
|
||||
- apiGroups: [ "" ]
|
||||
resources: [ endpoints ]
|
||||
verbs: [ get,list,watch ]
|
||||
---
|
||||
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: apisix-test
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: apisix-test
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: apisix-test
|
||||
namespace: default
|
||||
---
|
||||
discovery:
|
||||
kubernetes:
|
||||
- id: release # a custom name refer to the cluster, pattern ^[a-z0-9]{1,8}
|
||||
service:
|
||||
schema: https #default https
|
||||
host: "1.cluster.com"
|
||||
port: "6443"
|
||||
client:
|
||||
#token: |-
|
||||
# eyJhbGciOiJSUzI1NiIsImtpZCI6Ikx5ME1DNWdnbmhQNkZCNlZYMXBsT3pYU3BBS2swYzBPSkN3ZnBESGpkUEEif
|
||||
# 6Ikx5ME1DNWdnbmhQNkZCNlZYMXBsT3pYU3BBS2swYzBPSkN3ZnBESGpkUEEifeyJhbGciOiJSUzI1NiIsImtpZCI
|
||||
default_weight: 50 # weight assigned to each discovered endpoint. default 50, minimum 0
|
||||
namespace_selector:
|
||||
equal: default
|
||||
label_selector: |-
|
||||
first="a",second="b"
|
||||
shared_size: 1m #default 1m
|
||||
Loading…
Reference in New Issue
Block a user