Skip to content

Instantly share code, notes, and snippets.

@nathwill
Created October 2, 2017 22:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathwill/9595526c8bea835e449bab77f22edf69 to your computer and use it in GitHub Desktop.
Save nathwill/9595526c8bea835e449bab77f22edf69 to your computer and use it in GitHub Desktop.
k8s external gluster
---
kind: Endpoints
apiVersion: v1
metadata:
name: glusterfs-cluster
subsets:
- addresses:
- ip: 10.138.0.8
ports:
- port: 49152
---
kind: Service
apiVersion: v1
metadata:
name: glusterfs-cluster
spec:
ports:
- port: 49152
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: glusterfs
spec:
template:
metadata:
labels:
mode: test
spec:
containers:
- name: glusterfs
image: nginx
volumeMounts:
- mountPath: /mnt/glusterfs
name: glusterfsvol
volumes:
- name: glusterfsvol
glusterfs:
endpoints: glusterfs-cluster
path: kube_vol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment