Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a deployment for storage. #65

Merged
merged 5 commits into from
Jul 6, 2018
Merged

Create a deployment for storage. #65

merged 5 commits into from
Jul 6, 2018

Conversation

hwchiu
Copy link
Contributor

@hwchiu hwchiu commented Jul 5, 2018

If the type is nfs, we will create a deployment like this.

kind: Deployment
apiVersion: extensions/v1beta1
metadata:
  name: nfs-client-provisioner
spec:
  replicas: 1
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: nfs-client-provisioner
    spec:
      serviceAccount: nfs-provisioner
      containers:
        - name: nfs-client-provisioner
          image: quay.io/kubernetes_incubator/nfs-provisioner:latest
            imagePullPolicy: IfNotPresent
          volumeMounts:
            - name: nfs-client-root
              mountPath: /persistentvolumes
          env:
            - name: PROVISIONER_NAME
              value: vortex.io/nfs
            - name: NFS_SERVER
              value: 192.168.6.135
            - name: NFS_PATH
              value: /exports
      volumes:
        - name: nfs-client-root
          nfs:
            server: 192.168.6.135
            path: /exports

@hwchiu hwchiu requested review from John-Lin, chenyunchen and sufuf3 July 5, 2018 09:24
@hwchiu hwchiu added the Feature Features label Jul 6, 2018
@hwchiu hwchiu merged commit ea5afb5 into develop Jul 6, 2018
@hwchiu hwchiu deleted the hwchiu/VX-121 branch July 6, 2018 04:36
John-Lin pushed a commit that referenced this pull request Jul 25, 2018
Create a deployment for storage.

Former-commit-id: 4160895f760ba022715127db78eb513468a54f03 [formerly ea5afb5]
Former-commit-id: 133bc70640047dd025bacf7aa9cf04e80aaa9eed
John-Lin pushed a commit that referenced this pull request Jul 25, 2018
Create a deployment for storage.

Former-commit-id: 4160895f760ba022715127db78eb513468a54f03 [formerly 4160895f760ba022715127db78eb513468a54f03 [formerly ea5afb5]]
Former-commit-id: 133bc70640047dd025bacf7aa9cf04e80aaa9eed
Former-commit-id: 9f3fbbc
John-Lin pushed a commit that referenced this pull request Jul 25, 2018
Create a deployment for storage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants