提交 9edb82b4 编写于 作者: I innerpeacez

modify role to clusterrole

上级 fafaa1cb
apiVersion: v1 apiVersion: v2
name: skywalking name: skywalking
home: https://skywalking.apache.org home: https://skywalking.apache.org
version: 0.1.1 version: 0.1.2
appVersion: 6.4.0 appVersion: 6.4.0
description: Apache SkyWalking APM System description: Apache SkyWalking APM System
icon: https://raw.githubusercontent.com/apache/skywalking-kubernetes/master/logo/sw-logo-for-chart.jpg icon: https://raw.githubusercontent.com/apache/skywalking-kubernetes/master/logo/sw-logo-for-chart.jpg
......
kind: Role kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: {{ template "skywalking.fullname" . }} name: {{ template "skywalking.fullname" . }}
...@@ -11,3 +11,6 @@ rules: ...@@ -11,3 +11,6 @@ rules:
- apiGroups: [""] - apiGroups: [""]
resources: ["pods"] resources: ["pods"]
verbs: ["get", "watch", "list"] verbs: ["get", "watch", "list"]
- apiGroups: ["extensions"]
resources: ["deployments", "replicasets"]
verbs: ["get", "watch", "list"]
\ No newline at end of file
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: {{ template "skywalking.fullname" . }} name: {{ template "skywalking.fullname" . }}
labels: labels:
...@@ -9,7 +9,7 @@ metadata: ...@@ -9,7 +9,7 @@ metadata:
heritage: "{{ .Release.Service }}" heritage: "{{ .Release.Service }}"
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: Role kind: ClusterRole
name: {{ template "skywalking.fullname" . }} name: {{ template "skywalking.fullname" . }}
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
......
...@@ -33,7 +33,9 @@ oap: ...@@ -33,7 +33,9 @@ oap:
# example: oap-foo # example: oap-foo
env: env:
# more env, please refer to https://hub.docker.com/r/apache/skywalking-oap-server # more env, please refer to https://hub.docker.com/r/apache/skywalking-oap-server
# or https://github.com/apache/skywalking-docker/blob/master/6/6.4/oap/README.md#sw_telemetry
# for example :
# SW_ENVOY_ALS_ENABLED: true
ui: ui:
name: skywalking-ui name: skywalking-ui
replicas: 1 replicas: 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册