-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrose-game-ai-cm.yaml
46 lines (44 loc) · 1.04 KB
/
rose-game-ai-cm.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
apiVersion: apps/v1
kind: Deployment
metadata:
name: rose-game-ai-cm # modifiy name and namespace
labels:
app: rose-game-ai
spec:
replicas: 1
selector:
matchLabels:
app: rose-game-ai
template:
metadata:
labels:
app: rose-game-ai
spec:
containers:
- name: rose-game-ai
image: quay.io/rose/rose-game-ai:latest # Modify with your Docker image name and tag.
ports:
- containerPort: 8081
env:
- name: DRIVER
value: "/app/examples/mydriver.py"
volumeMounts:
- name: mydriver-volume
mountPath: "/app/examples/"
volumes:
- name: mydriver-volume
configMap:
name: mydriver-config # kubectl create configmap mydriver-config -n rose --from-file=mydriver.py
---
apiVersion: v1
kind: Service
metadata:
name: rose-game-ai-cm # modifiy name and namespace
spec:
selector:
app: rose-game-ai
ports:
- protocol: TCP
port: 8081
targetPort: 8081
type: ClusterIP