Change json manifests to yaml manifests
This commit is contained in:
parent
629c9013d1
commit
863738ce48
|
@ -1,33 +0,0 @@
|
||||||
{
|
|
||||||
"kind": "Endpoints",
|
|
||||||
"apiVersion": "v1",
|
|
||||||
"metadata": {
|
|
||||||
"name": "glusterfs-cluster"
|
|
||||||
},
|
|
||||||
"subsets": [
|
|
||||||
{
|
|
||||||
"addresses": [
|
|
||||||
{
|
|
||||||
"ip": "10.240.106.152"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"port": 1
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"addresses": [
|
|
||||||
{
|
|
||||||
"ip": "10.240.79.157"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"port": 1
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,31 +0,0 @@
|
||||||
{
|
|
||||||
"apiVersion": "v1",
|
|
||||||
"kind": "Pod",
|
|
||||||
"metadata": {
|
|
||||||
"name": "glusterfs"
|
|
||||||
},
|
|
||||||
"spec": {
|
|
||||||
"containers": [
|
|
||||||
{
|
|
||||||
"name": "glusterfs",
|
|
||||||
"image": "nginx",
|
|
||||||
"volumeMounts": [
|
|
||||||
{
|
|
||||||
"mountPath": "/mnt/glusterfs",
|
|
||||||
"name": "glusterfsvol"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "glusterfsvol",
|
|
||||||
"glusterfs": {
|
|
||||||
"endpoints": "glusterfs-cluster",
|
|
||||||
"path": "kube_vol",
|
|
||||||
"readOnly": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: glusterfs
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: glusterfs
|
||||||
|
image: nginx
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: "/mnt/glusterfs"
|
||||||
|
name: glusterfsvol
|
||||||
|
volumes:
|
||||||
|
- name: glusterfsvol
|
||||||
|
glusterfs:
|
||||||
|
endpoints: glusterfs-cluster
|
||||||
|
path: kube_vol
|
||||||
|
readOnly: true
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"kind": "Service",
|
|
||||||
"apiVersion": "v1",
|
|
||||||
"metadata": {
|
|
||||||
"name": "glusterfs-cluster"
|
|
||||||
},
|
|
||||||
"spec": {
|
|
||||||
"ports": [
|
|
||||||
{"port": 1}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: glusterfs-cluster
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 1
|
|
@ -0,0 +1,13 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Endpoints
|
||||||
|
metadata:
|
||||||
|
name: glusterfs-cluster
|
||||||
|
subsets:
|
||||||
|
- addresses:
|
||||||
|
- ip: 10.240.106.152
|
||||||
|
ports:
|
||||||
|
- port: 1
|
||||||
|
- addresses:
|
||||||
|
- ip: 10.240.79.157
|
||||||
|
ports:
|
||||||
|
- port: 1
|
Loading…
Reference in New Issue