mirror of https://github.com/helm/helm
parent
65b3c7e4ff
commit
3ed2616f43
@ -0,0 +1,49 @@
|
|||||||
|
{% set PROPERTIES = properties or {} %}
|
||||||
|
{% set SERVER_IP = PROPERTIES['ip'] or '10.0.253.247' %}
|
||||||
|
{% set SERVER_PORT = PROPERTIES['port'] or 2049 %}
|
||||||
|
{% set SERVER_DISK = PROPERTIES['disk'] or 'nfs-disk' %}
|
||||||
|
{% set SERVER_DISK_FSTYPE = PROPERTIES['fstype'] or 'ext4' %}
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- name: nfs-server
|
||||||
|
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/templates/replicatedservice/v2/replicatedservice.py
|
||||||
|
properties:
|
||||||
|
service_port: {{ SERVER_PORT }}
|
||||||
|
container_port: {{ SERVER_PORT }}
|
||||||
|
replicas: 1 # Has to be 1 because of the persistent disk
|
||||||
|
image: gcr.io/google_containers/volume-nfs
|
||||||
|
privileged: true
|
||||||
|
cluster_ip: {{ SERVER_IP }}
|
||||||
|
volumes:
|
||||||
|
- mount_path: /mnt/data
|
||||||
|
gcePersistentDisk:
|
||||||
|
pdName: {{ SERVER_DISK }}
|
||||||
|
fsType: {{ SERVER_DISK_FSTYPE }}
|
||||||
|
- name: nfs-pvc
|
||||||
|
type: PersistentVolumeClaim
|
||||||
|
properties:
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: nfs
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Mi
|
||||||
|
- name: nfs-pv
|
||||||
|
type: PersistentVolume
|
||||||
|
properties:
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: nfs
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 1Mi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
nfs:
|
||||||
|
server: {{ SERVER_IP }}
|
||||||
|
path: "/"
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -0,0 +1,2 @@
|
|||||||
|
- name: nfs
|
||||||
|
type: https://raw.githubusercontent.com/leendersr/deployment-manager/master/templates/nfs/v1/nfs.jinja
|
Loading…
Reference in new issue