Skip to content

Commit

Permalink
Restrict Trident pods to amd64 linux nodes (#109)
Browse files Browse the repository at this point in the history
Closes: #264
  • Loading branch information
clintonk authored and adkerr committed Sep 12, 2019
1 parent f64b432 commit c5ee929
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

[Releases](https://github.com/NetApp/trident/releases)

## Changes since v19.04.0
## Changes since v19.07.0

**Fixes:**
- **Kubernetes:** Added fix to ensure Trident pods only run on amd64/linux nodes.

**Enhancements:**

## v19.07.0

**Fixes:**
- **Kubernetes:** Improved volume import transaction cleanup during failure scenarios.
Expand Down
27 changes: 27 additions & 0 deletions cli/k8s_client/yaml_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ spec:
initialDelaySeconds: 120
periodSeconds: 120
timeoutSeconds: 90
nodeSelector:
beta.kubernetes.io/os: linux
beta.kubernetes.io/arch: amd64
`

func GetCSIServiceYAML(label string) string {
Expand Down Expand Up @@ -401,6 +404,9 @@ spec:
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
nodeSelector:
beta.kubernetes.io/os: linux
beta.kubernetes.io/arch: amd64
volumes:
- name: socket-dir
emptyDir:
Expand Down Expand Up @@ -503,6 +509,9 @@ spec:
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
nodeSelector:
kubernetes.io/os: linux
kubernetes.io/arch: amd64
volumes:
- name: socket-dir
emptyDir:
Expand Down Expand Up @@ -606,6 +615,9 @@ spec:
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
nodeSelector:
kubernetes.io/os: linux
kubernetes.io/arch: amd64
volumes:
- name: socket-dir
emptyDir:
Expand Down Expand Up @@ -723,6 +735,9 @@ spec:
mountPath: /plugin
- name: registration-dir
mountPath: /registration
nodeSelector:
beta.kubernetes.io/os: linux
beta.kubernetes.io/arch: amd64
volumes:
- name: plugin-dir
hostPath:
Expand Down Expand Up @@ -842,6 +857,9 @@ spec:
mountPath: /plugin
- name: registration-dir
mountPath: /registration
nodeSelector:
kubernetes.io/os: linux
kubernetes.io/arch: amd64
volumes:
- name: plugin-dir
hostPath:
Expand Down Expand Up @@ -1059,6 +1077,9 @@ spec:
volumeMounts:
- name: etcd-vol
mountPath: /var/etcd/data
nodeSelector:
beta.kubernetes.io/os: linux
beta.kubernetes.io/arch: amd64
volumes:
- name: etcd-vol
persistentVolumeClaim:
Expand Down Expand Up @@ -1093,6 +1114,9 @@ spec:
- name: setup-dir
mountPath: /setup
restartPolicy: Never
nodeSelector:
beta.kubernetes.io/os: linux
beta.kubernetes.io/arch: amd64
volumes:
- name: setup-dir
configMap:
Expand Down Expand Up @@ -1123,6 +1147,9 @@ spec:
image: {TRIDENT_IMAGE}
workingDir: /
command: {COMMAND}
nodeSelector:
beta.kubernetes.io/os: linux
beta.kubernetes.io/arch: amd64
restartPolicy: Never
`

Expand Down

0 comments on commit c5ee929

Please sign in to comment.