mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-10 17:39:43 +00:00
44 lines
844 B
YAML
44 lines
844 B
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: dst
|
|
spec:
|
|
serviceName: dst
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: dst
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: dst
|
|
spec:
|
|
|
|
# needed because only clients with local network are allowed
|
|
hostNetwork: true
|
|
|
|
securityContext:
|
|
runAsUser: 1000
|
|
fsGroup: 1000
|
|
volumes:
|
|
- name: dst
|
|
hostPath:
|
|
path: /data/home/dst
|
|
type:
|
|
containers:
|
|
- name: dst-master
|
|
image: gorilych/dst:v0.0.1
|
|
stdin: true
|
|
tty: true
|
|
volumeMounts:
|
|
- name: dst
|
|
mountPath: /data
|
|
args:
|
|
- Master
|
|
- name: dst-caves
|
|
image: gorilych/dst:v0.0.1
|
|
volumeMounts:
|
|
- name: dst
|
|
mountPath: /data
|
|
args:
|
|
- Caves
|