-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from opensds/development
Merge Development into Master branch for publishing Bali Milestone-3
- Loading branch information
Showing
10 changed files
with
359 additions
and
26 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
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
102 changes: 102 additions & 0 deletions
102
charts/csiplugin/templates/csi-snapshotter-opensdsplugin.yaml
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,102 @@ | ||
# This YAML file contains snapshotter & csi driver API objects, | ||
# which are necessary to run external csi snapshotter for opensds. | ||
|
||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: csi-snapshotter-opensdsplugin | ||
labels: | ||
app: csi-snapshotter-opensdsplugin | ||
spec: | ||
selector: | ||
app: csi-snapshotter-opensdsplugin | ||
ports: | ||
- name: dummy | ||
port: 12345 | ||
|
||
--- | ||
kind: StatefulSet | ||
apiVersion: apps/v1beta1 | ||
metadata: | ||
name: csi-snapshotter-opensdsplugin | ||
spec: | ||
serviceName: "csi-snapshotter-opensdsplugin" | ||
replicas: {{ .Values.replicaCount }} | ||
template: | ||
metadata: | ||
labels: | ||
app: csi-snapshotter-opensdsplugin | ||
spec: | ||
serviceAccount: csi-snapshotter | ||
containers: | ||
- name: csi-snapshotter | ||
# This should be replaced by an official k8s-csi snapshotter image when it is released. | ||
image: quay.io/k8scsi/csi-snapshotter:v0.4.0 | ||
args: | ||
- "--snapshotter=csi-opensdsplugin" | ||
- "--csi-address=$(ADDRESS)" | ||
- "--connection-timeout=15s" | ||
env: | ||
- name: ADDRESS | ||
value: /csi/csi.sock | ||
imagePullPolicy: "IfNotPresent" | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /csi | ||
- name: opensds | ||
image: {{ .Values.image }} | ||
args : | ||
- "--csiEndpoint=$(CSI_ENDPOINT)" | ||
- "--opensdsEndpoint=$(OPENSDS_ENDPOINT)" | ||
- "--opensdsAuthStrategy=$(OPENSDS_AUTH_STRATEGY)" | ||
- "-v8" | ||
env: | ||
- name: CSI_ENDPOINT | ||
value: unix://csi/csi.sock | ||
- name: OPENSDS_ENDPOINT | ||
valueFrom: | ||
configMapKeyRef: | ||
name: csi-configmap-opensdsplugin | ||
key: opensdsendpoint | ||
- name: OPENSDS_AUTH_STRATEGY | ||
valueFrom: | ||
configMapKeyRef: | ||
name: csi-configmap-opensdsplugin | ||
key: opensdsauthstrategy | ||
- name: OS_AUTH_URL | ||
valueFrom: | ||
configMapKeyRef: | ||
name: csi-configmap-opensdsplugin | ||
key: osauthurl | ||
- name: OS_USERNAME | ||
valueFrom: | ||
configMapKeyRef: | ||
name: csi-configmap-opensdsplugin | ||
key: osusername | ||
- name: OS_PASSWORD | ||
valueFrom: | ||
configMapKeyRef: | ||
name: csi-configmap-opensdsplugin | ||
key: ospassword | ||
- name: OS_TENANT_NAME | ||
valueFrom: | ||
configMapKeyRef: | ||
name: csi-configmap-opensdsplugin | ||
key: ostenantname | ||
- name: OS_PROJECT_NAME | ||
valueFrom: | ||
configMapKeyRef: | ||
name: csi-configmap-opensdsplugin | ||
key: osprojectname | ||
- name: OS_USER_DOMAIN_ID | ||
valueFrom: | ||
configMapKeyRef: | ||
name: csi-configmap-opensdsplugin | ||
key: osuserdomainid | ||
imagePullPolicy: {{ .Values.imagePullPolicy }} | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /csi | ||
volumes: | ||
- name: socket-dir | ||
emptyDir: |
Oops, something went wrong.