mirror of
https://github.com/jcwimer/startup-infrastructure
synced 2026-03-24 22:34:42 +00:00
38 lines
957 B
Django/Jinja
38 lines
957 B
Django/Jinja
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: nfs-client-provisioner
|
|
---
|
|
kind: Deployment
|
|
apiVersion: extensions/v1beta1
|
|
metadata:
|
|
name: nfs-client-provisioner
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nfs-client-provisioner
|
|
spec:
|
|
serviceAccountName: nfs-client-provisioner
|
|
containers:
|
|
- name: nfs-client-provisioner
|
|
image: quay.io/external_storage/nfs-client-provisioner:latest
|
|
volumeMounts:
|
|
- name: nfs-client-root
|
|
mountPath: /persistentvolumes
|
|
env:
|
|
- name: PROVISIONER_NAME
|
|
value: {{ domain }}/nfs
|
|
- name: NFS_SERVER
|
|
value: {{ nfs_location }}
|
|
- name: NFS_PATH
|
|
value: {{ rke_nfs_path }}
|
|
volumes:
|
|
- name: nfs-client-root
|
|
nfs:
|
|
server: {{ nfs_location }}
|
|
path: {{ rke_nfs_path }}
|