Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nfs provisioner image #309

Open
wants to merge 5 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/vars-doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,12 @@ ppc64le: true

### NFS Configuration

```
nfs_provisioner_image: gcr.io/k8s-staging-sig-storage/nfs-subdir-external-provisioner:v4.0.0
```

* `nfs_provisioner_image` - Set the nfs_provisioner image to use. (default: gcr.io/k8s-staging-sig-storage/nfs-subdir-external-provisioner:v4.0.0)

This playbook sets up a script called [helpernodecheck](../templates/checker.sh.j2). That script can be used to set up the helpernode as an NFS server (this is the default). It uses the [k8s nfs setup in the incubator repo](https://github.com/kubernetes-incubator/external-storage/blob/master/nfs-client/README.md).

> :warning: Run `helpernodecheck nfs-info` for information after the playbook runs.
Expand Down
2 changes: 1 addition & 1 deletion tasks/setup_keepalived.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

- name: Set low_priority fact
set_fact:
low_priority: "{{ low_priority | default([]) }} + [ {{ item.priority }} ]"
low_priority: "{{ low_priority | default([]) + [ item.priority ] }}"
with_items:
- "{{ high_availability.helpernodes }}"
when: item.state == "BACKUP"
Expand Down
2 changes: 1 addition & 1 deletion templates/nfs-provisioner-deployment.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
{% if setup_registry.deploy and setup_registry.autosync_registry %}
image: registry.{{ dns.clusterid }}.{{ dns.domain }}:5000/nfs-client-provisioner:latest
{% else %}
image: gcr.io/k8s-staging-sig-storage/nfs-subdir-external-provisioner:v4.0.0
image: "{{ nfs_provisioner_image | default("gcr.io/k8s-staging-sig-storage/nfs-subdir-external-provisioner:v4.0.0") }}"
{% endif %}
volumeMounts:
- name: nfs-client-root
Expand Down