Skip to content

Commit

Permalink
fix k8s orchestration
Browse files Browse the repository at this point in the history
  • Loading branch information
spyyang committed Aug 31, 2020
1 parent 7ba728c commit a3ceb49
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 7 deletions.
7 changes: 5 additions & 2 deletions charts/curve-csi/templates/controllerplugin-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ rules:
verbs: ["list", "watch", "create", "update", "patch"]
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "create", "update", "delete"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch", "update"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims/status"]
verbs: ["update", "patch"]
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses"]
verbs: ["get", "list", "watch"]
Expand Down
3 changes: 3 additions & 0 deletions charts/curve-csi/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ spec:
- {{ include "curve-csi.name" . }}-controllerplugin
topologyKey: kubernetes.io/hostname
serviceAccount: curve-csi-provisioner
hostNetwork: true
hostPID: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: csi-provisioner
image: "{{ .Values.controllerplugin.provisioner.image.repository }}:{{ .Values.controllerplugin.provisioner.image.tag }}"
Expand Down
7 changes: 5 additions & 2 deletions deploy/kubernetes/v1.13/provisioner-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ rules:
verbs: ["list", "watch", "create", "update", "patch"]
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "create", "update", "delete"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch", "update"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims/status"]
verbs: ["update", "patch"]
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses"]
verbs: ["get", "list", "watch"]
Expand Down
3 changes: 3 additions & 0 deletions deploy/kubernetes/v1.13/provisioner-sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ spec:
- csi-curve-plugin-provisioner
topologyKey: kubernetes.io/hostname
serviceAccount: curve-csi-provisioner
hostNetwork: true
hostPID: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: csi-provisioner
image: quay.io/k8scsi/csi-provisioner:v1.3.0
Expand Down
3 changes: 3 additions & 0 deletions deploy/kubernetes/v1.14+/provisioner-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
- csi-curve-plugin-provisioner
topologyKey: kubernetes.io/hostname
serviceAccount: curve-csi-provisioner
hostNetwork: true
hostPID: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: csi-provisioner
image: quay.io/k8scsi/csi-provisioner:v1.3.0
Expand Down
7 changes: 5 additions & 2 deletions deploy/kubernetes/v1.14+/provisioner-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ rules:
verbs: ["list", "watch", "create", "update", "patch"]
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "create", "update", "delete"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch", "update"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims/status"]
verbs: ["update", "patch"]
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses"]
verbs: ["get", "list", "watch"]
Expand Down
2 changes: 1 addition & 1 deletion images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ ADD curve-csi /bin/curve-csi
RUN chmod +x /bin/curve-csi && \
clean-install ca-certificates e2fsprogs mount xfsprogs udev

CMD ["/bin/curve-csi"]
ENTRYPOINT ["/bin/curve-csi"]

0 comments on commit a3ceb49

Please sign in to comment.