-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathk8-deployment.yaml
44 lines (44 loc) · 932 Bytes
/
k8-deployment.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: k8craft
spec:
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: k8craft
spec:
containers:
- name: mc
image: benton/spigot:0.5.0-1.11
env:
- name: SERVER_JAR
value: spigot
- name: MAX_RAM
value: 2560m
ports:
- containerPort: 25565
volumeMounts:
- name: k8craft-data
mountPath: /data
stdin: true
- name: ssh
image: benton/ssh:0.1.6
env:
- name: SSH_USER
value: mc
- name: SSH_KEY
value: SSH_KEY_DATA
ports:
- containerPort: 22
volumeMounts:
- name: k8craft-data
mountPath: /data
volumes:
- name: k8craft-data
gcePersistentDisk:
pdName: k8craft-data
fsType: ext4