Skip to content

Instantly share code, notes, and snippets.

@jonchen727
Created July 21, 2021 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonchen727/52b69b3e6a317f257022af000eb9d030 to your computer and use it in GitHub Desktop.
Save jonchen727/52b69b3e6a317f257022af000eb9d030 to your computer and use it in GitHub Desktop.
example organizr deployment with cifs share
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
name: organizr
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: organizr
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 100%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: organizr
io.portainer.kubernetes.application.name: organizr
spec:
containers:
- env:
- name: PGID
value: "1000"
- name: PUID
value: "1000"
image: organizr/organizr
imagePullPolicy: Always
name: organizr
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /config
name: config
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- flexVolume:
driver: fstab/cifs
fsType: cifs
options:
mountOptions: dir_mode=0777,file_mode=0777,iocharset=utf8,noperm,nounix,rw
networkPath: <CIFS_SHARE_PATH>
secretRef:
name: cifs-secret
name: config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment