Skip to content

Instantly share code, notes, and snippets.

@chukaofili
Created May 18, 2018 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chukaofili/77bc3d0a36c68da0f313aa1c675ebe29 to your computer and use it in GitHub Desktop.
Save chukaofili/77bc3d0a36c68da0f313aa1c675ebe29 to your computer and use it in GitHub Desktop.
DigitalOcean flexplugin deploy
apiVersion: apps/v1beta2
kind: DaemonSet
metadata:
labels:
app: digitalocean-flexplugin-deploy
name: digitalocean-flexplugin-deploy
namespace: kube-system
spec:
selector:
matchLabels:
app: digitalocean-flexplugin-deploy
template:
metadata:
labels:
app: digitalocean-flexplugin-deploy
name: digitalocean-flexplugin-deploy
spec:
containers:
- env:
- name: DIGITALOCEAN_ACCESS_TOKEN
valueFrom:
secretKeyRef:
key: access-token
name: digitalocean
image: quay.io/external_storage/digitalocean-flexplugin
imagePullPolicy: Always
name: flex-deploy
resources:
limits:
cpu: 25m
memory: 32Mi
requests:
cpu: 25m
memory: 32Mi
volumeMounts:
- mountPath: /flexmnt
name: flexvolume-mount
tolerations:
- operator: Exists
volumes:
- hostPath:
path: /etc/kubernetes/kubelet-plugins/volume
name: flexvolume-mount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment