apiVersion: apps/v1
kind: Deployment
metadata:
labels:
k8s-app: spms-standard-support-taskworker
name: spms-standard-support-taskworker
namespace: spms-standard
spec:
selector:
matchLabels:
k8s-app: spms-standard-support-taskworker
template:
metadata:
labels:
k8s-app: spms-standard-support-taskworker
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
fsGroupChangePolicy: "OnRootMismatch"
volumes:
- name: nfs-logs
persistentVolumeClaim:
claimName: nfs-claim-taskworker
containers:
- name: spms-standard-support-taskworker
image: spms-standard-support-taskworker:20231208
imagePullPolicy: IfNotPresent
volumeMounts:
- name: nfs-logs
mountPath: "/logs"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: spms-standard
name: nfs-claim-taskworker
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi