Skip to content

Commit de75733

Browse files
author
daniel840829
committed
add agent to cluster
1 parent 130a4cc commit de75733

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ COPY ./cluster ./cluster
1313
EXPOSE 3000 8080 50051
1414
# ENTRYPOINT [ "/bin/bash" ]
1515
CMD ["./gameServer"]
16+
17+

cluster/accountbind.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: rbac.authorization.k8s.io/v1beta1
2+
kind: ClusterRoleBinding
3+
metadata:
4+
name: fabric8-rbac
5+
subjects:
6+
- kind: ServiceAccount
7+
# Reference to upper's `metadata.name`
8+
name: default
9+
# Reference to upper's `metadata.namespace`
10+
namespace: default
11+
roleRef:
12+
kind: ClusterRole
13+
name: cluster-admin
14+
apiGroup: rbac.authorization.k8s.io

cluster/agent.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ metadata:
1111
clientToAgentPort: '50051'
1212
spec:
1313
hostNetwork: true
14+
restartPolicy: Never
1415
containers:
1516
- name: game-server
1617
image: daniel840829/gameplayserver:circleci-latest

0 commit comments

Comments
 (0)