Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install pd-csi driver by default at kube-up
- Loading branch information
Showing
12 changed files
with
956 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## generate configurations | ||
configurations in this folder is generated by the `stable-master` overlay from [pd-csi repo](https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/tree/master/deploy/kubernetes/overlays/stable-master). | ||
|
||
## maintenance | ||
every time the container image versions from the stable-master is bumped, the corresponding versions in this folder should be changed accordingly. specifically, `pd-csi.yaml` contains specification for driver running on nodes while containers running in `pdcsi-controller` can be found in `pdcsi-controller.yaml` under [k/k/cluster/gce/manifests/](https://github.com/kubernetes/kubernetes/tree/master/cluster/gce/manifests) |
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,74 @@ | ||
apiVersion: policy/v1beta1 | ||
kind: PodSecurityPolicy | ||
metadata: | ||
name: csi-gce-pd-controller-psp | ||
labels: | ||
addonmanager.kubernetes.io/mode: Reconcile | ||
spec: | ||
fsGroup: | ||
rule: RunAsAny | ||
hostNetwork: true | ||
runAsUser: | ||
rule: RunAsAny | ||
seLinux: | ||
rule: RunAsAny | ||
supplementalGroups: | ||
rule: RunAsAny | ||
volumes: | ||
- emptyDir | ||
- secret | ||
--- | ||
apiVersion: policy/v1beta1 | ||
kind: PodSecurityPolicy | ||
metadata: | ||
name: csi-gce-pd-node-psp | ||
labels: | ||
addonmanager.kubernetes.io/mode: Reconcile | ||
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 | ||
fsGroup: | ||
rule: RunAsAny | ||
hostNetwork: true | ||
privileged: true | ||
runAsUser: | ||
rule: RunAsAny | ||
seLinux: | ||
rule: RunAsAny | ||
supplementalGroups: | ||
rule: RunAsAny | ||
volumes: | ||
- '*' | ||
--- | ||
apiVersion: policy/v1beta1 | ||
kind: PodSecurityPolicy | ||
metadata: | ||
name: csi-gce-pd-node-psp-win | ||
labels: | ||
addonmanager.kubernetes.io/mode: Reconcile | ||
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-v1beta1 | ||
- pathPrefix: \\.\pipe\csi-proxy-volume-v1beta1 | ||
- pathPrefix: \\.\pipe\csi-proxy-filesystem-v1beta1 | ||
fsGroup: | ||
rule: RunAsAny | ||
hostNetwork: true | ||
runAsUser: | ||
rule: RunAsAny | ||
seLinux: | ||
rule: RunAsAny | ||
supplementalGroups: | ||
rule: RunAsAny | ||
volumes: | ||
- '*' |
Oops, something went wrong.