Commit 34584ccb by lixinyi

Update k8sdeploy.yaml

parent f1f0b2ab
...@@ -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: eureka-server-test serviceAccountName: devops
--- ---
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: eureka-server-test #ClusterRoleBinding的名字 name: devops #ClusterRoleBinding的名字
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: eureka-server-test #serviceaccount资源对象的name name: devops #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: eureka-server-test # ServiceAccount的名字 name: devops # ServiceAccount的名字
namespace: devops # serviceaccount的namespace namespace: devops # serviceaccount的namespace
labels: labels:
app: eureka-server-test #ServiceAccount的标签 app: devops #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