50 lines
825 B
YAML
50 lines
825 B
YAML
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: StatefulSet
|
||
|
metadata:
|
||
|
name: dashy
|
||
|
spec:
|
||
|
podManagementPolicy: OrderedReady
|
||
|
updateStrategy:
|
||
|
type: RollingUpdate
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: dashy
|
||
|
serviceName: dashy
|
||
|
replicas: 1
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: dashy
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: dashy
|
||
|
image: lissy93/dashy:latest
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
|
name: web
|
||
|
volumeMounts:
|
||
|
- name: config
|
||
|
mountPath: /app/public
|
||
|
|
||
|
volumeClaimTemplates:
|
||
|
- metadata:
|
||
|
name: config
|
||
|
spec:
|
||
|
accessModes: [ "ReadWriteOnce" ]
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 1Gi
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: dashy
|
||
|
spec:
|
||
|
selector:
|
||
|
app: dashy
|
||
|
ports:
|
||
|
- port: 80
|
||
|
targetPort: 80
|
||
|
name: web
|