Commit 05da84cc by lixinyi

Update k8sdeploy.yaml

parent 34584ccb
......@@ -22,7 +22,7 @@ spec:
command: ['sh','-c','sh ./bin/startup.sh && sleep 3600']
ports:
- containerPort: 8769
serviceAccountName: devops
serviceAccountName: default
---
apiVersion: v1
kind: Service
......@@ -45,10 +45,10 @@ spec:
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: devops #ClusterRoleBinding的名字
name: default #ClusterRoleBinding的名字
subjects:
- kind: ServiceAccount
name: devops #serviceaccount资源对象的name
name: default #serviceaccount资源对象的name
namespace: devops #serviceaccount的namespace
roleRef:
kind: ClusterRole
......@@ -58,7 +58,7 @@ roleRef:
apiVersion: v1
kind: ServiceAccount
metadata:
name: devops # ServiceAccount的名字
name: default # ServiceAccount的名字
namespace: devops # serviceaccount的namespace
labels:
app: devops #ServiceAccount的标签
\ No newline at end of file
app: default #ServiceAccount的标签
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment