-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add windows driver installation support
This PR adds windows driver support. It adds a windows base dir to install base yaml files. It also adds a windows alpha kustomization file. To install driver for windows, first set env NODE_OS=windows and GCE_PD_DRIVER_VERSION=alpha and run deploy/kubernetes/deploy-driver.sh script. This PR also reorgnize the dir structure for linux version. Now under overlay, we have a linux and a windows dir. Under each of them, we have alpha, stable, etc. Currently windows only has alpha version.
- Loading branch information
Showing
28 changed files
with
289 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,5 @@ commonLabels: | |
namespace: | ||
gce-pd-csi-driver | ||
resources: | ||
- node.yaml | ||
- controller.yaml | ||
- setup-cluster.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
deploy/kubernetes/overlays/linux/base/allowedHostPaths.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: policy/v1beta1 | ||
kind: PodSecurityPolicy | ||
metadata: | ||
name: csi-gce-pd-node-psp | ||
spec: | ||
allowedHostPaths: | ||
- pathPrefix: "/var/lib/kubelet/plugins_registry/" | ||
- pathPrefix: "/var/lib/kubelet" | ||
- pathPrefix: "/var/lib/kubelet/plugins/pd.csi.storage.gke.io/" | ||
- pathPrefix: "/dev" | ||
- pathPrefix: "/etc/udev" | ||
- pathPrefix: "/lib/udev" | ||
- pathPrefix: "/run/udev" | ||
- pathPrefix: "/sys" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
kind: DaemonSet | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: csi-gce-pd-node | ||
spec: | ||
template: | ||
spec: | ||
hostNetwork: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
bases: | ||
- ../../../base | ||
namespace: | ||
gce-pd-csi-driver | ||
resources: | ||
- node.yaml | ||
patchesStrategicMerge: | ||
- allowedHostPaths.yaml | ||
images: | ||
- name: gke.gcr.io/gcp-compute-persistent-disk-csi-driver | ||
# Don't change stable image without changing pdImagePlaceholder in | ||
# test/k8s-integration/main.go | ||
newName: gke.gcr.io/gcp-compute-persistent-disk-csi-driver | ||
newTag: "v0.7.0-gke.0" | ||
- name: gke.gcr.io/csi-provisioner | ||
newName: gke.gcr.io/csi-provisioner | ||
newTag: "v1.5.0-gke.0" | ||
- name: gke.gcr.io/csi-attacher | ||
newName: gke.gcr.io/csi-attacher | ||
newTag: "v2.1.1-gke.0" | ||
- name: gke.gcr.io/csi-node-driver-registrar | ||
newName: gke.gcr.io/csi-node-driver-registrar | ||
newTag: "v1.2.0-gke.0" | ||
- name: gke.gcr.io/csi-resizer | ||
newName: gke.gcr.io/csi-resizer | ||
newTag: "v0.4.0-gke.0" | ||
- name: gke.gcr.io/csi-snapshotter | ||
newName: gke.gcr.io/csi-snapshotter | ||
newTag: "v2.1.1-gke.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
kind: DaemonSet | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: csi-gce-pd-node | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: csi-driver-registrar | ||
args: | ||
- "--v=5" | ||
- "--csi-address=/csi/csi.sock" | ||
- "--kubelet-registration-path=/var/lib/kubelet/plugins/pd.csi.storage.gke.io/csi.sock" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...e-release-staging-head/kustomization.yaml → ...e-release-staging-head/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...gke-release-staging-rc/kustomization.yaml → ...gke-release-staging-rc/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rnetes/overlays/stable/kustomization.yaml → .../overlays/linux/stable/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
deploy/kubernetes/overlays/windows/base/allowedHostPaths.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: policy/v1beta1 | ||
kind: PodSecurityPolicy | ||
metadata: | ||
name: csi-gce-pd-node-psp | ||
spec: | ||
allowedHostPaths: | ||
- pathPrefix: \var\lib\kubelet | ||
- pathPrefix: \var\lib\kubelet\plugins_registry | ||
- pathPrefix: \var\lib\kubelet\plugins\pd.csi.storage.gke.io | ||
- pathPrefix: \\.\pipe\csi-proxy-disk-v1alpha1 | ||
- pathPrefix: \\.\pipe\csi-proxy-volume-v1alpha1 | ||
- pathPrefix: \\.\pipe\csi-proxy-filesystem-v1alpha1 |
36 changes: 36 additions & 0 deletions
36
deploy/kubernetes/overlays/windows/base/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
bases: | ||
- ../../../base | ||
namespace: | ||
gce-pd-csi-driver | ||
resources: | ||
- node.yaml | ||
patchesStrategicMerge: | ||
- allowedHostPaths.yaml | ||
images: | ||
- name: gke.gcr.io/gcp-compute-persistent-disk-csi-driver | ||
# Don't change stable image without changing pdImagePlaceholder in | ||
# test/k8s-integration/main.go | ||
newName: gke.gcr.io/gcp-compute-persistent-disk-csi-driver | ||
newTag: "v0.7.0-gke.0" | ||
- name: gke.gcr.io/gcp-compute-persistent-disk-csi-driver-win | ||
# Temporarly set to the private repo. Will swtich to public one | ||
# once it is available. | ||
newName: gcr.io/jing-k8s-dev/gce-pd-windows-2019 | ||
newTag: "0.2.0" | ||
- name: gke.gcr.io/csi-provisioner | ||
newName: gke.gcr.io/csi-provisioner | ||
newTag: "v1.5.0-gke.0" | ||
- name: gke.gcr.io/csi-attacher | ||
newName: gke.gcr.io/csi-attacher | ||
newTag: "v2.1.1-gke.0" | ||
- name: gke.gcr.io/csi-node-driver-registrar | ||
newName: gcr.io/k8s-staging-csi/csi-node-driver-registrar | ||
newTag: "amd64-windows-v20200428-v1.3.0-26-g510710d5" | ||
- name: gke.gcr.io/csi-resizer | ||
newName: gke.gcr.io/csi-resizer | ||
newTag: "v0.4.0-gke.0" | ||
- name: gke.gcr.io/csi-snapshotter | ||
newName: gke.gcr.io/csi-snapshotter | ||
newTag: "v2.1.1-gke.0" |
Oops, something went wrong.