Skip to content

Instantly share code, notes, and snippets.

@plutov
Created April 23, 2020 11:28
Show Gist options
  • Save plutov/4e13fd277f26d3cbe8954c359e49138c to your computer and use it in GitHub Desktop.
Save plutov/4e13fd277f26d3cbe8954c359e49138c to your computer and use it in GitHub Desktop.
gcs-k8s-2.yml
#...
securityContext:
privileged: true
capabilities:
add:
- SYS_ADMIN
lifecycle:
postStart:
exec:
command: ["gcsfuse", "-o", "nonempty,allow_other", "bucket-name", "/usr/share/nginx/bucket-data"]
preStop:
exec:
command: ["fusermount", "-u", "/usr/share/nginx/bucket-data"]
#...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment