From 32a353ebddd1d8ac3d73ede8dc30f1d153408981 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Tue, 15 Oct 2019 12:29:48 +0200 Subject: [PATCH 1/3] deploy: bump version to latest releases Deployments for older Kubernetes releases get updated if the release notes of a sidecar declare the sidecar release as "recommended" for that release of Kubernetes. The driver itself still needs to be tagged once this change is merged. --- deploy/kubernetes-1.13/hostpath/csi-hostpath-plugin.yaml | 6 +++--- deploy/kubernetes-1.14/hostpath/csi-hostpath-plugin.yaml | 4 ++-- .../kubernetes-1.14/hostpath/csi-hostpath-provisioner.yaml | 2 +- .../kubernetes-1.14/hostpath/csi-hostpath-snapshotter.yaml | 2 +- deploy/kubernetes-1.15/hostpath/csi-hostpath-attacher.yaml | 2 +- deploy/kubernetes-1.15/hostpath/csi-hostpath-plugin.yaml | 4 ++-- .../kubernetes-1.15/hostpath/csi-hostpath-provisioner.yaml | 2 +- .../kubernetes-1.15/hostpath/csi-hostpath-snapshotter.yaml | 2 +- deploy/kubernetes-1.16/hostpath/csi-hostpath-attacher.yaml | 2 +- deploy/kubernetes-1.16/hostpath/csi-hostpath-plugin.yaml | 4 ++-- .../kubernetes-1.16/hostpath/csi-hostpath-provisioner.yaml | 2 +- deploy/kubernetes-1.16/hostpath/csi-hostpath-resizer.yaml | 2 +- 12 files changed, 17 insertions(+), 17 deletions(-) diff --git a/deploy/kubernetes-1.13/hostpath/csi-hostpath-plugin.yaml b/deploy/kubernetes-1.13/hostpath/csi-hostpath-plugin.yaml index 9abcda386..22e47b61f 100644 --- a/deploy/kubernetes-1.13/hostpath/csi-hostpath-plugin.yaml +++ b/deploy/kubernetes-1.13/hostpath/csi-hostpath-plugin.yaml @@ -37,7 +37,7 @@ spec: hostNetwork: true containers: - name: node-driver-registrar - image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0 + image: quay.io/k8scsi/csi-node-driver-registrar:v1.2.0 lifecycle: preStop: exec: @@ -63,7 +63,7 @@ spec: name: csi-data-dir - name: hostpath - image: quay.io/k8scsi/hostpathplugin:v1.2.0-rc8 + image: quay.io/k8scsi/hostpathplugin:v1.2.0 args: - "--drivername=hostpath.csi.k8s.io" - "--v=5" @@ -107,7 +107,7 @@ spec: volumeMounts: - mountPath: /csi name: socket-dir - image: quay.io/k8scsi/livenessprobe:v1.0.2 + image: quay.io/k8scsi/livenessprobe:v1.1.0 args: - --csi-address=/csi/csi.sock - --connection-timeout=3s diff --git a/deploy/kubernetes-1.14/hostpath/csi-hostpath-plugin.yaml b/deploy/kubernetes-1.14/hostpath/csi-hostpath-plugin.yaml index e36db7398..22e47b61f 100644 --- a/deploy/kubernetes-1.14/hostpath/csi-hostpath-plugin.yaml +++ b/deploy/kubernetes-1.14/hostpath/csi-hostpath-plugin.yaml @@ -37,7 +37,7 @@ spec: hostNetwork: true containers: - name: node-driver-registrar - image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0 + image: quay.io/k8scsi/csi-node-driver-registrar:v1.2.0 lifecycle: preStop: exec: @@ -63,7 +63,7 @@ spec: name: csi-data-dir - name: hostpath - image: quay.io/k8scsi/hostpathplugin:v1.2.0-rc8 + image: quay.io/k8scsi/hostpathplugin:v1.2.0 args: - "--drivername=hostpath.csi.k8s.io" - "--v=5" diff --git a/deploy/kubernetes-1.14/hostpath/csi-hostpath-provisioner.yaml b/deploy/kubernetes-1.14/hostpath/csi-hostpath-provisioner.yaml index 1035d254e..662ba8741 100644 --- a/deploy/kubernetes-1.14/hostpath/csi-hostpath-provisioner.yaml +++ b/deploy/kubernetes-1.14/hostpath/csi-hostpath-provisioner.yaml @@ -40,7 +40,7 @@ spec: serviceAccountName: csi-provisioner containers: - name: csi-provisioner - image: quay.io/k8scsi/csi-provisioner:v1.2.1 + image: quay.io/k8scsi/csi-provisioner:v1.2.2 args: - -v=5 - --csi-address=/csi/csi.sock diff --git a/deploy/kubernetes-1.14/hostpath/csi-hostpath-snapshotter.yaml b/deploy/kubernetes-1.14/hostpath/csi-hostpath-snapshotter.yaml index 661d2e65b..515452729 100644 --- a/deploy/kubernetes-1.14/hostpath/csi-hostpath-snapshotter.yaml +++ b/deploy/kubernetes-1.14/hostpath/csi-hostpath-snapshotter.yaml @@ -40,7 +40,7 @@ spec: serviceAccount: csi-snapshotter containers: - name: csi-snapshotter - image: quay.io/k8scsi/csi-snapshotter:v1.1.0 + image: quay.io/k8scsi/csi-snapshotter:v1.2.2 args: - -v=5 - --csi-address=/csi/csi.sock diff --git a/deploy/kubernetes-1.15/hostpath/csi-hostpath-attacher.yaml b/deploy/kubernetes-1.15/hostpath/csi-hostpath-attacher.yaml index d7c36d2ec..823763a91 100644 --- a/deploy/kubernetes-1.15/hostpath/csi-hostpath-attacher.yaml +++ b/deploy/kubernetes-1.15/hostpath/csi-hostpath-attacher.yaml @@ -40,7 +40,7 @@ spec: serviceAccountName: csi-attacher containers: - name: csi-attacher - image: quay.io/k8scsi/csi-attacher:v1.2.0 + image: quay.io/k8scsi/csi-attacher:v2.0.0 args: - --v=5 - --csi-address=/csi/csi.sock diff --git a/deploy/kubernetes-1.15/hostpath/csi-hostpath-plugin.yaml b/deploy/kubernetes-1.15/hostpath/csi-hostpath-plugin.yaml index e36db7398..22e47b61f 100644 --- a/deploy/kubernetes-1.15/hostpath/csi-hostpath-plugin.yaml +++ b/deploy/kubernetes-1.15/hostpath/csi-hostpath-plugin.yaml @@ -37,7 +37,7 @@ spec: hostNetwork: true containers: - name: node-driver-registrar - image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0 + image: quay.io/k8scsi/csi-node-driver-registrar:v1.2.0 lifecycle: preStop: exec: @@ -63,7 +63,7 @@ spec: name: csi-data-dir - name: hostpath - image: quay.io/k8scsi/hostpathplugin:v1.2.0-rc8 + image: quay.io/k8scsi/hostpathplugin:v1.2.0 args: - "--drivername=hostpath.csi.k8s.io" - "--v=5" diff --git a/deploy/kubernetes-1.15/hostpath/csi-hostpath-provisioner.yaml b/deploy/kubernetes-1.15/hostpath/csi-hostpath-provisioner.yaml index 9ff79e0bf..e51c12d50 100644 --- a/deploy/kubernetes-1.15/hostpath/csi-hostpath-provisioner.yaml +++ b/deploy/kubernetes-1.15/hostpath/csi-hostpath-provisioner.yaml @@ -40,7 +40,7 @@ spec: serviceAccountName: csi-provisioner containers: - name: csi-provisioner - image: quay.io/k8scsi/csi-provisioner:v1.3.0 + image: quay.io/k8scsi/csi-provisioner:v1.3.1 args: - -v=5 - --csi-address=/csi/csi.sock diff --git a/deploy/kubernetes-1.15/hostpath/csi-hostpath-snapshotter.yaml b/deploy/kubernetes-1.15/hostpath/csi-hostpath-snapshotter.yaml index 6a1e35e00..515452729 100644 --- a/deploy/kubernetes-1.15/hostpath/csi-hostpath-snapshotter.yaml +++ b/deploy/kubernetes-1.15/hostpath/csi-hostpath-snapshotter.yaml @@ -40,7 +40,7 @@ spec: serviceAccount: csi-snapshotter containers: - name: csi-snapshotter - image: quay.io/k8scsi/csi-snapshotter:v1.2.0 + image: quay.io/k8scsi/csi-snapshotter:v1.2.2 args: - -v=5 - --csi-address=/csi/csi.sock diff --git a/deploy/kubernetes-1.16/hostpath/csi-hostpath-attacher.yaml b/deploy/kubernetes-1.16/hostpath/csi-hostpath-attacher.yaml index d7c36d2ec..823763a91 100644 --- a/deploy/kubernetes-1.16/hostpath/csi-hostpath-attacher.yaml +++ b/deploy/kubernetes-1.16/hostpath/csi-hostpath-attacher.yaml @@ -40,7 +40,7 @@ spec: serviceAccountName: csi-attacher containers: - name: csi-attacher - image: quay.io/k8scsi/csi-attacher:v1.2.0 + image: quay.io/k8scsi/csi-attacher:v2.0.0 args: - --v=5 - --csi-address=/csi/csi.sock diff --git a/deploy/kubernetes-1.16/hostpath/csi-hostpath-plugin.yaml b/deploy/kubernetes-1.16/hostpath/csi-hostpath-plugin.yaml index e36db7398..22e47b61f 100644 --- a/deploy/kubernetes-1.16/hostpath/csi-hostpath-plugin.yaml +++ b/deploy/kubernetes-1.16/hostpath/csi-hostpath-plugin.yaml @@ -37,7 +37,7 @@ spec: hostNetwork: true containers: - name: node-driver-registrar - image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0 + image: quay.io/k8scsi/csi-node-driver-registrar:v1.2.0 lifecycle: preStop: exec: @@ -63,7 +63,7 @@ spec: name: csi-data-dir - name: hostpath - image: quay.io/k8scsi/hostpathplugin:v1.2.0-rc8 + image: quay.io/k8scsi/hostpathplugin:v1.2.0 args: - "--drivername=hostpath.csi.k8s.io" - "--v=5" diff --git a/deploy/kubernetes-1.16/hostpath/csi-hostpath-provisioner.yaml b/deploy/kubernetes-1.16/hostpath/csi-hostpath-provisioner.yaml index 9ff79e0bf..f99bc8229 100644 --- a/deploy/kubernetes-1.16/hostpath/csi-hostpath-provisioner.yaml +++ b/deploy/kubernetes-1.16/hostpath/csi-hostpath-provisioner.yaml @@ -40,7 +40,7 @@ spec: serviceAccountName: csi-provisioner containers: - name: csi-provisioner - image: quay.io/k8scsi/csi-provisioner:v1.3.0 + image: quay.io/k8scsi/csi-provisioner:v1.4.0 args: - -v=5 - --csi-address=/csi/csi.sock diff --git a/deploy/kubernetes-1.16/hostpath/csi-hostpath-resizer.yaml b/deploy/kubernetes-1.16/hostpath/csi-hostpath-resizer.yaml index a1b87f716..77af2afb0 100644 --- a/deploy/kubernetes-1.16/hostpath/csi-hostpath-resizer.yaml +++ b/deploy/kubernetes-1.16/hostpath/csi-hostpath-resizer.yaml @@ -40,7 +40,7 @@ spec: serviceAccountName: csi-resizer containers: - name: csi-resizer - image: quay.io/k8scsi/csi-resizer:v0.2.0 + image: quay.io/k8scsi/csi-resizer:v0.3.0 args: - -v=5 - -csi-address=/csi/csi.sock From 9c8a9db0bcb35fc504529eb270fb2fef48151992 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 16 Oct 2019 21:29:53 +0200 Subject: [PATCH 2/3] deploy: remove deployment for Kubernetes 1.13 That release is no longer supported. --- deploy/kubernetes-1.13/README.md | 7 - deploy/kubernetes-1.13/deploy-hostpath.sh | 1 - .../hostpath/csi-hostpath-attacher.yaml | 55 ------- .../hostpath/csi-hostpath-plugin.yaml | 138 ------------------ .../hostpath/csi-hostpath-provisioner.yaml | 55 ------- .../hostpath/csi-hostpath-resizer.yaml | 54 ------- .../hostpath/csi-hostpath-snapshotter.yaml | 55 ------- .../hostpath/csi-hostpath-testing.yaml | 59 -------- .../csi-hostpath-snapshotclass.yaml | 5 - 9 files changed, 429 deletions(-) delete mode 100644 deploy/kubernetes-1.13/README.md delete mode 120000 deploy/kubernetes-1.13/deploy-hostpath.sh delete mode 100644 deploy/kubernetes-1.13/hostpath/csi-hostpath-attacher.yaml delete mode 100644 deploy/kubernetes-1.13/hostpath/csi-hostpath-plugin.yaml delete mode 100644 deploy/kubernetes-1.13/hostpath/csi-hostpath-provisioner.yaml delete mode 100644 deploy/kubernetes-1.13/hostpath/csi-hostpath-resizer.yaml delete mode 100644 deploy/kubernetes-1.13/hostpath/csi-hostpath-snapshotter.yaml delete mode 100644 deploy/kubernetes-1.13/hostpath/csi-hostpath-testing.yaml delete mode 100644 deploy/kubernetes-1.13/snapshotter/csi-hostpath-snapshotclass.yaml diff --git a/deploy/kubernetes-1.13/README.md b/deploy/kubernetes-1.13/README.md deleted file mode 100644 index 5f59381fd..000000000 --- a/deploy/kubernetes-1.13/README.md +++ /dev/null @@ -1,7 +0,0 @@ -The deployment for Kubernetes 1.13 uses CSI 1.0 and thus is -incompatible with older Kubernetes releases. - -The sidecar images rely on the CRDs for CSIDriverInfo and CSINodeInfo, -which were replaced with builtin APIs in Kubernetes 1.14. They can be -deployed on Kubernetes 1.14 if the CRDs are installed, but features -relying on these CRDs (like topology) are unlikely to work. diff --git a/deploy/kubernetes-1.13/deploy-hostpath.sh b/deploy/kubernetes-1.13/deploy-hostpath.sh deleted file mode 120000 index 589c43f62..000000000 --- a/deploy/kubernetes-1.13/deploy-hostpath.sh +++ /dev/null @@ -1 +0,0 @@ -../util/deploy-hostpath.sh \ No newline at end of file diff --git a/deploy/kubernetes-1.13/hostpath/csi-hostpath-attacher.yaml b/deploy/kubernetes-1.13/hostpath/csi-hostpath-attacher.yaml deleted file mode 100644 index ba2bdb3d8..000000000 --- a/deploy/kubernetes-1.13/hostpath/csi-hostpath-attacher.yaml +++ /dev/null @@ -1,55 +0,0 @@ -kind: Service -apiVersion: v1 -metadata: - name: csi-hostpath-attacher - labels: - app: csi-hostpath-attacher -spec: - selector: - app: csi-hostpath-attacher - ports: - - name: dummy - port: 12345 - ---- -kind: StatefulSet -apiVersion: apps/v1 -metadata: - name: csi-hostpath-attacher -spec: - serviceName: "csi-hostpath-attacher" - replicas: 1 - selector: - matchLabels: - app: csi-hostpath-attacher - template: - metadata: - labels: - app: csi-hostpath-attacher - spec: - affinity: - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: app - operator: In - values: - - csi-hostpathplugin - topologyKey: kubernetes.io/hostname - serviceAccountName: csi-attacher - containers: - - name: csi-attacher - image: quay.io/k8scsi/csi-attacher:v1.0.1 - args: - - --v=5 - - --csi-address=/csi/csi.sock - volumeMounts: - - mountPath: /csi - name: socket-dir - - volumes: - - hostPath: - path: /var/lib/kubelet/plugins/csi-hostpath - type: DirectoryOrCreate - name: socket-dir diff --git a/deploy/kubernetes-1.13/hostpath/csi-hostpath-plugin.yaml b/deploy/kubernetes-1.13/hostpath/csi-hostpath-plugin.yaml deleted file mode 100644 index 22e47b61f..000000000 --- a/deploy/kubernetes-1.13/hostpath/csi-hostpath-plugin.yaml +++ /dev/null @@ -1,138 +0,0 @@ -# Service defined here, plus serviceName below in StatefulSet, -# are needed only because of condition explained in -# https://github.com/kubernetes/kubernetes/issues/69608 - -kind: Service -apiVersion: v1 -metadata: - name: csi-hostpathplugin - labels: - app: csi-hostpathplugin -spec: - selector: - app: csi-hostpathplugin - ports: - - name: dummy - port: 12345 ---- -kind: StatefulSet -apiVersion: apps/v1 -metadata: - name: csi-hostpathplugin -spec: - serviceName: "csi-hostpathplugin" - # One replica only: - # Host path driver only works when everything runs - # on a single node. We achieve that by starting it once and then - # co-locate all other pods via inter-pod affinity - replicas: 1 - selector: - matchLabels: - app: csi-hostpathplugin - template: - metadata: - labels: - app: csi-hostpathplugin - spec: - hostNetwork: true - containers: - - name: node-driver-registrar - image: quay.io/k8scsi/csi-node-driver-registrar:v1.2.0 - lifecycle: - preStop: - exec: - command: ["/bin/sh", "-c", "rm -rf /registration/csi-hostpath /registration/csi-hostpath-reg.sock"] - args: - - --v=5 - - --csi-address=/csi/csi.sock - - --kubelet-registration-path=/var/lib/kubelet/plugins/csi-hostpath/csi.sock - securityContext: - privileged: true - env: - - name: KUBE_NODE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: spec.nodeName - volumeMounts: - - mountPath: /csi - name: socket-dir - - mountPath: /registration - name: registration-dir - - mountPath: /csi-data-dir - name: csi-data-dir - - - name: hostpath - image: quay.io/k8scsi/hostpathplugin:v1.2.0 - args: - - "--drivername=hostpath.csi.k8s.io" - - "--v=5" - - "--endpoint=$(CSI_ENDPOINT)" - - "--nodeid=$(KUBE_NODE_NAME)" - env: - - name: CSI_ENDPOINT - value: unix:///csi/csi.sock - - name: KUBE_NODE_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: spec.nodeName - securityContext: - privileged: true - ports: - - containerPort: 9898 - name: healthz - protocol: TCP - livenessProbe: - failureThreshold: 5 - httpGet: - path: /healthz - port: healthz - initialDelaySeconds: 10 - timeoutSeconds: 3 - periodSeconds: 2 - volumeMounts: - - mountPath: /csi - name: socket-dir - - mountPath: /var/lib/kubelet/pods - mountPropagation: Bidirectional - name: mountpoint-dir - - mountPath: /var/lib/kubelet/plugins - mountPropagation: Bidirectional - name: plugins-dir - - mountPath: /csi-data-dir - name: csi-data-dir - - - name: liveness-probe - volumeMounts: - - mountPath: /csi - name: socket-dir - image: quay.io/k8scsi/livenessprobe:v1.1.0 - args: - - --csi-address=/csi/csi.sock - - --connection-timeout=3s - - --health-port=9898 - - volumes: - - hostPath: - path: /var/lib/kubelet/plugins/csi-hostpath - type: DirectoryOrCreate - name: socket-dir - - hostPath: - path: /var/lib/kubelet/pods - type: DirectoryOrCreate - name: mountpoint-dir - - hostPath: - path: /var/lib/kubelet/plugins_registry - type: Directory - name: registration-dir - - hostPath: - path: /var/lib/kubelet/plugins - type: Directory - name: plugins-dir - - hostPath: - # 'path' is where PV data is persisted on host. - # using /tmp is also possible while the PVs will not available after plugin container recreation or host reboot - path: /var/lib/csi-hostpath-data/ - type: DirectoryOrCreate - name: csi-data-dir diff --git a/deploy/kubernetes-1.13/hostpath/csi-hostpath-provisioner.yaml b/deploy/kubernetes-1.13/hostpath/csi-hostpath-provisioner.yaml deleted file mode 100644 index 542317029..000000000 --- a/deploy/kubernetes-1.13/hostpath/csi-hostpath-provisioner.yaml +++ /dev/null @@ -1,55 +0,0 @@ -kind: Service -apiVersion: v1 -metadata: - name: csi-hostpath-provisioner - labels: - app: csi-hostpath-provisioner -spec: - selector: - app: csi-hostpath-provisioner - ports: - - name: dummy - port: 12345 - ---- -kind: StatefulSet -apiVersion: apps/v1 -metadata: - name: csi-hostpath-provisioner -spec: - serviceName: "csi-hostpath-provisioner" - replicas: 1 - selector: - matchLabels: - app: csi-hostpath-provisioner - template: - metadata: - labels: - app: csi-hostpath-provisioner - spec: - affinity: - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: app - operator: In - values: - - csi-hostpathplugin - topologyKey: kubernetes.io/hostname - serviceAccountName: csi-provisioner - containers: - - name: csi-provisioner - image: quay.io/k8scsi/csi-provisioner:v1.0.1 - args: - - -v=5 - - --csi-address=/csi/csi.sock - - --connection-timeout=15s - volumeMounts: - - mountPath: /csi - name: socket-dir - volumes: - - hostPath: - path: /var/lib/kubelet/plugins/csi-hostpath - type: DirectoryOrCreate - name: socket-dir diff --git a/deploy/kubernetes-1.13/hostpath/csi-hostpath-resizer.yaml b/deploy/kubernetes-1.13/hostpath/csi-hostpath-resizer.yaml deleted file mode 100644 index a1b87f716..000000000 --- a/deploy/kubernetes-1.13/hostpath/csi-hostpath-resizer.yaml +++ /dev/null @@ -1,54 +0,0 @@ -kind: Service -apiVersion: v1 -metadata: - name: csi-hostpath-resizer - labels: - app: csi-hostpath-resizer -spec: - selector: - app: csi-hostpath-resizer - ports: - - name: dummy - port: 12345 - ---- -kind: StatefulSet -apiVersion: apps/v1 -metadata: - name: csi-hostpath-resizer -spec: - serviceName: "csi-hostpath-resizer" - replicas: 1 - selector: - matchLabels: - app: csi-hostpath-resizer - template: - metadata: - labels: - app: csi-hostpath-resizer - spec: - affinity: - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: app - operator: In - values: - - csi-hostpathplugin - topologyKey: kubernetes.io/hostname - serviceAccountName: csi-resizer - containers: - - name: csi-resizer - image: quay.io/k8scsi/csi-resizer:v0.2.0 - args: - - -v=5 - - -csi-address=/csi/csi.sock - volumeMounts: - - mountPath: /csi - name: socket-dir - volumes: - - hostPath: - path: /var/lib/kubelet/plugins/csi-hostpath - type: DirectoryOrCreate - name: socket-dir diff --git a/deploy/kubernetes-1.13/hostpath/csi-hostpath-snapshotter.yaml b/deploy/kubernetes-1.13/hostpath/csi-hostpath-snapshotter.yaml deleted file mode 100644 index 97584c380..000000000 --- a/deploy/kubernetes-1.13/hostpath/csi-hostpath-snapshotter.yaml +++ /dev/null @@ -1,55 +0,0 @@ -kind: Service -apiVersion: v1 -metadata: - name: csi-hostpath-snapshotter - labels: - app: csi-hostpath-snapshotter -spec: - selector: - app: csi-hostpath-snapshotter - ports: - - name: dummy - port: 12345 - ---- -kind: StatefulSet -apiVersion: apps/v1 -metadata: - name: csi-hostpath-snapshotter -spec: - serviceName: "csi-hostpath-snapshotter" - replicas: 1 - selector: - matchLabels: - app: csi-hostpath-snapshotter - template: - metadata: - labels: - app: csi-hostpath-snapshotter - spec: - affinity: - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: app - operator: In - values: - - csi-hostpathplugin - topologyKey: kubernetes.io/hostname - serviceAccount: csi-snapshotter - containers: - - name: csi-snapshotter - image: quay.io/k8scsi/csi-snapshotter:v1.0.1 - args: - - -v=5 - - --csi-address=/csi/csi.sock - - --connection-timeout=15s - volumeMounts: - - mountPath: /csi - name: socket-dir - volumes: - - hostPath: - path: /var/lib/kubelet/plugins/csi-hostpath - type: DirectoryOrCreate - name: socket-dir diff --git a/deploy/kubernetes-1.13/hostpath/csi-hostpath-testing.yaml b/deploy/kubernetes-1.13/hostpath/csi-hostpath-testing.yaml deleted file mode 100644 index 3e6b837d1..000000000 --- a/deploy/kubernetes-1.13/hostpath/csi-hostpath-testing.yaml +++ /dev/null @@ -1,59 +0,0 @@ -# WARNING: this is only for testing purposes. Do not install in a production -# cluster. -# -# This exposes the hostpath's Unix domain csi.sock as a TCP port to the -# outside world. The mapping from Unix domain socket to TCP is done -# by socat. -# -# This is useful for testing with csi-sanity or csc. - -apiVersion: v1 -kind: Service -metadata: - name: hostpath-service -spec: - type: NodePort - selector: - app: csi-hostpath-socat - ports: - - port: 10000 # fixed port inside the pod, dynamically allocated port outside ---- -kind: StatefulSet -apiVersion: apps/v1 -metadata: - name: csi-hostpath-socat -spec: - serviceName: "csi-hostpath-socat" - replicas: 1 - selector: - matchLabels: - app: csi-hostpath-socat - template: - metadata: - labels: - app: csi-hostpath-socat - spec: - affinity: - podAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: app - operator: In - values: - - csi-hostpathplugin - topologyKey: kubernetes.io/hostname - containers: - - name: socat - image: alpine/socat:1.0.3 - args: - - tcp-listen:10000,fork,reuseaddr - - unix-connect:/csi/csi.sock - volumeMounts: - - mountPath: /csi - name: socket-dir - volumes: - - hostPath: - path: /var/lib/kubelet/plugins/csi-hostpath - type: DirectoryOrCreate - name: socket-dir diff --git a/deploy/kubernetes-1.13/snapshotter/csi-hostpath-snapshotclass.yaml b/deploy/kubernetes-1.13/snapshotter/csi-hostpath-snapshotclass.yaml deleted file mode 100644 index e222c1783..000000000 --- a/deploy/kubernetes-1.13/snapshotter/csi-hostpath-snapshotclass.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: snapshot.storage.k8s.io/v1alpha1 -kind: VolumeSnapshotClass -metadata: - name: csi-hostpath-snapclass -snapshotter: hostpath.csi.k8s.io From 7ff8fa7035cf0cae8a4e6ddcf865e10de5379b7c Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 16 Oct 2019 21:30:35 +0200 Subject: [PATCH 3/3] CHANGELOG-1.2.md: initial version for v1.2.0 --- CHANGELOG-1.2.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 CHANGELOG-1.2.md diff --git a/CHANGELOG-1.2.md b/CHANGELOG-1.2.md new file mode 100644 index 000000000..3ae4e0aec --- /dev/null +++ b/CHANGELOG-1.2.md @@ -0,0 +1,28 @@ +# Changelog since v1.1.0 + +## Breaking Changes + +- The deployment uses `hostpath.csi.k8s.io` as driver name ([#64](https://github.com/kubernetes-csi/csi-driver-host-path/pull/64), [@pohly](https://github.com/pohly)). + Make sure that there are no persistent or ephemeral volumes using the old `csi-hostpath` name before updating because otherwise + those volumes cannot be removed. Pods with such ephemeral volumes will be stuck in "terminating" state. New pods + will not be able to start if they reference a volume that uses the old name. + Any storage class that references the driver must be updated together with the driver. + +## New Features + +- normal deployment supports ephemeral inline volumes on Kubernetes 1.15 and 1.16 ([#67](https://github.com/kubernetes-csi/csi-driver-host-path/pull/67), [@pohly](https://github.com/pohly), [#97](https://github.com/kubernetes-csi/csi-driver-host-path/pull/97), [@pohly](https://github.com/pohly)) +- volume expansion support ([#87](https://github.com/kubernetes-csi/csi-driver-host-path/pull/87), [@bertinatto](https://github.com/bertinatto), [#90](https://github.com/kubernetes-csi/csi-driver-host-path/pull/90), [@bertinatto](https://github.com/bertinatto)) +- topology support ([#88](https://github.com/kubernetes-csi/csi-driver-host-path/pull/88), [@mucahitkurt](https://github.com/mucahitkurt)) +- cloning support ([#58](https://github.com/kubernetes-csi/csi-driver-host-path/pull/58), [@j-griffith](https://github.com/j-griffith)) + +## Bug Fixes + +- /csi-data-dir optional ([#73](https://github.com/kubernetes-csi/csi-driver-host-path/pull/73), [@msau42](https://github.com/msau42)) +- Set volume content source if creating volume from snapshot ([#51](https://github.com/kubernetes-csi/csi-driver-host-path/pull/51), [@zhucan](https://github.com/zhucan)). +- Fixes cp expansion issue for volume cloning ([#82](https://github.com/kubernetes-csi/csi-driver-host-path/pull/82), [@j-griffith](https://github.com/j-griffith)). + +## Other Notable Changes + +- Added deployment specs for K8s 1.15 ([#63](https://github.com/kubernetes-csi/csi-driver-host-path/pull/63), [@msau42](https://github.com/msau42)) and 1.16 ([#97](https://github.com/kubernetes-csi/csi-driver-host-path/pull/97), [@pohly](https://github.com/pohly)). +- Removed deployment specs for K8s 1.13 because it is no longer supported ([#102](https://github.com/kubernetes-csi/csi-driver-host-path/pull/102), [@pohly](https://github.com/pohly)). +- Updated sidecars to latest stable releases ([#102](https://github.com/kubernetes-csi/csi-driver-host-path/pull/102), [@pohly](https://github.com/pohly)).