2024-08-08 01:51:51 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: StatefulSet
|
|
|
|
metadata:
|
|
|
|
name: snipe
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: snipe
|
|
|
|
serviceName: snipe
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: snipe
|
|
|
|
spec:
|
|
|
|
securityContext:
|
|
|
|
fsGroup: 33
|
|
|
|
fsGroupChangePolicy: "OnRootMismatch"
|
|
|
|
containers:
|
|
|
|
- name: snipe
|
2024-11-25 15:02:04 +00:00
|
|
|
image: snipe/snipe-it:v7.1.15
|
2024-08-08 01:51:51 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
name: web
|
|
|
|
volumeMounts:
|
|
|
|
- name: storage
|
|
|
|
mountPath: /var/lib/snipeit
|
|
|
|
- name: logs
|
|
|
|
mountPath: /var/www/html/storage/logs
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: snipe-config
|
|
|
|
- secretRef:
|
|
|
|
name: mysql
|
|
|
|
- secretRef:
|
|
|
|
name: snipe
|
|
|
|
volumes:
|
|
|
|
- name: logs
|
|
|
|
emptyDir: {}
|
|
|
|
volumeClaimTemplates:
|
|
|
|
- metadata:
|
|
|
|
name: storage
|
|
|
|
spec:
|
|
|
|
accessModes: [ "ReadWriteOnce" ]
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 5Gi
|