Commit 05da84cc by lixinyi

Update k8sdeploy.yaml

parent 34584ccb
...@@ -22,7 +22,7 @@ spec: ...@@ -22,7 +22,7 @@ spec:
command: ['sh','-c','sh ./bin/startup.sh && sleep 3600'] command: ['sh','-c','sh ./bin/startup.sh && sleep 3600']
ports: ports:
- containerPort: 8769 - containerPort: 8769
serviceAccountName: devops serviceAccountName: default
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
...@@ -45,10 +45,10 @@ spec: ...@@ -45,10 +45,10 @@ spec:
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: devops #ClusterRoleBinding的名字 name: default #ClusterRoleBinding的名字
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: devops #serviceaccount资源对象的name name: default #serviceaccount资源对象的name
namespace: devops #serviceaccount的namespace namespace: devops #serviceaccount的namespace
roleRef: roleRef:
kind: ClusterRole kind: ClusterRole
...@@ -58,7 +58,7 @@ roleRef: ...@@ -58,7 +58,7 @@ roleRef:
apiVersion: v1 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: devops # ServiceAccount的名字 name: default # ServiceAccount的名字
namespace: devops # serviceaccount的namespace namespace: devops # serviceaccount的namespace
labels: labels:
app: devops #ServiceAccount的标签 app: default #ServiceAccount的标签
\ No newline at end of file \ 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