Last active
June 15, 2018 22:11
-
-
Save DazWilkin/f969bb8d01ebb73b500830bdfe537c08 to your computer and use it in GitHub Desktop.
Fabric on Google Cloud Platform
This file contains hidden or 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
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: nfs | |
spec: | |
storageClassName: default | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 100Gi | |
... | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: nfs | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
role: nfs | |
template: | |
metadata: | |
labels: | |
role: nfs | |
spec: | |
containers: | |
- name: nfs | |
image: gcr.io/google_containers/volume-nfs:0.8 | |
ports: | |
- name: nfs | |
containerPort: 2049 | |
- name: mountd | |
containerPort: 20048 | |
- name: rpcbind | |
containerPort: 111 | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- mountPath: /exports | |
name: nfs | |
volumes: | |
- name: nfs | |
persistentVolumeClaim: | |
claimName: nfs | |
readOnly: false | |
... |
This file contains hidden or 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: nfs | |
spec: | |
ports: | |
- name: nfs | |
port: 2049 | |
- name: mountd | |
port: 20048 | |
- name: rpcbind | |
port: 111 | |
selector: | |
role: nfs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had trouble with nfs persistent volume claim. It worked after I remove " storageClassName: default"