53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert -f compose.yaml -n privatebin
|
|
kompose.version: 1.34.0 (cbf2835db)
|
|
labels:
|
|
io.kompose.service: privatebin
|
|
name: privatebin
|
|
namespace: privatebin
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: privatebin
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert -f compose.yaml -n privatebin
|
|
kompose.version: 1.34.0 (cbf2835db)
|
|
labels:
|
|
io.kompose.service: privatebin
|
|
spec:
|
|
nodeSelector:
|
|
kubernetes.io/hostname: tencent-gz1
|
|
containers:
|
|
- env:
|
|
- name: TZ
|
|
value: Asia/Shanghai
|
|
image: privatebin/nginx-fpm-alpine:1.7.6
|
|
name: privatebin
|
|
ports:
|
|
- containerPort: 8080
|
|
protocol: TCP
|
|
volumeMounts:
|
|
- mountPath: /srv/cfg/conf.php
|
|
name: privatebin-cm0
|
|
readOnly: true
|
|
subPath: conf.php
|
|
- mountPath: /srv/data
|
|
name: pb-data
|
|
restartPolicy: Always
|
|
volumes:
|
|
- configMap:
|
|
items:
|
|
- key: conf.php
|
|
path: conf.php
|
|
name: privatebin-cm0
|
|
name: privatebin-cm0
|
|
- name: pb-data
|
|
persistentVolumeClaim:
|
|
claimName: pb-tgz1-pvc
|