-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PWX-31562 : Operator's Windows support (#1211)
* Add windows operator support * update daemonset labels * Replace nodeselecter with nodeaffinity * Add tests * add nodeselector for stork and stork-scheduler * remove nodeaffinity from components * add nodeselector as linux in storagecluster * address review comments * address review comments * address review comments * update windows specific affinity and tolerations * add px-installer daemonset for windows * fix failing tests * fix failing tests * remove fmt logs * set default csi-installer image for windows * fix failing test * fix review comments * fix failing test * rename px driver and node-win daemonset file names * remove fmt logs * rename px-csi-node-win-shared daemonset to px-csi-node-win
- Loading branch information
1 parent
31dbafd
commit e9963de
Showing
48 changed files
with
1,077 additions
and
4 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
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,116 @@ | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: px-csi-node-win | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: px-csi-node-win | ||
template: | ||
metadata: | ||
labels: | ||
app: px-csi-node-win | ||
spec: | ||
containers: | ||
- args: | ||
- '--csi-address=$(CSI_ENDPOINT)' | ||
- '--probe-timeout=3s' | ||
- '--health-port=29643' | ||
- '--v=2' | ||
command: | ||
- /livenessprobe.exe | ||
env: | ||
- name: CSI_ENDPOINT | ||
value: 'unix://C:\\csi\\csi.sock' | ||
name: liveness-probe | ||
resources: | ||
limits: | ||
memory: 100Mi | ||
requests: | ||
cpu: 10m | ||
memory: 40Mi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
volumeMounts: | ||
- mountPath: 'C:\csi' | ||
name: plugin-dir | ||
- args: | ||
- '--v=2' | ||
- '--csi-address=$(CSI_ENDPOINT)' | ||
- '--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)' | ||
command: | ||
- /csi-node-driver-registrar.exe | ||
env: | ||
- name: CSI_ENDPOINT | ||
value: 'unix://C:\\csi\\csi.sock' | ||
- name: DRIVER_REG_SOCK_PATH | ||
value: 'C:\\var\\lib\\kubelet\\plugins\\pxd.portworx.com\\csi.sock' | ||
- name: KUBE_NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: spec.nodeName | ||
livenessProbe: | ||
exec: | ||
command: | ||
- /csi-node-driver-registrar.exe | ||
- '--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)' | ||
- '--mode=kubelet-registration-probe' | ||
failureThreshold: 3 | ||
initialDelaySeconds: 60 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 30 | ||
name: node-driver-registrar | ||
resources: | ||
limits: | ||
memory: 100Mi | ||
requests: | ||
cpu: 10m | ||
memory: 40Mi | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
volumeMounts: | ||
- mountPath: 'C:\var\lib\kubelet' | ||
name: kubelet-dir | ||
- mountPath: 'C:\csi' | ||
name: plugin-dir | ||
- mountPath: 'C:\registration' | ||
name: registration-dir | ||
dnsPolicy: ClusterFirst | ||
hostNetwork: true | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: kubernetes.io/os | ||
operator: In | ||
values: | ||
- windows | ||
priorityClassName: system-node-critical | ||
restartPolicy: Always | ||
schedulerName: default-scheduler | ||
securityContext: {} | ||
terminationGracePeriodSeconds: 30 | ||
tolerations: | ||
- key: os | ||
value: Windows | ||
volumes: | ||
- hostPath: | ||
path: 'C:\var\lib\kubelet\plugins_registry\' | ||
type: Directory | ||
name: registration-dir | ||
- hostPath: | ||
path: 'C:\var\lib\kubelet\' | ||
type: Directory | ||
name: kubelet-dir | ||
- hostPath: | ||
path: 'C:\var\lib\kubelet\plugins\pxd.portworx.com\' | ||
type: DirectoryOrCreate | ||
name: plugin-dir | ||
updateStrategy: | ||
rollingUpdate: | ||
maxSurge: 0 | ||
maxUnavailable: 1 | ||
type: RollingUpdate |
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,29 @@ | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: px-csi-win-driver | ||
labels: | ||
app: px-csi-win-driver | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: px-csi-win-driver | ||
template: | ||
metadata: | ||
labels: | ||
app: px-csi-win-driver | ||
spec: | ||
serviceAccountName: portworx | ||
containers: | ||
- name: windowsinstaller | ||
image: docker.io/cnbuautomation800/pxwincsidriver:v0.1 | ||
imagePullPolicy: Always | ||
securityContext: | ||
windowsOptions: | ||
hostProcess: true | ||
runAsUserName: "NT AUTHORITY\\SYSTEM" | ||
command: | ||
- powershell.exe | ||
- -command | ||
- csidriver\\pxinstall.ps1 | ||
hostNetwork: true |
Oops, something went wrong.