Created
January 17, 2019 16:27
-
-
Save davecramer/aca65a8126e6492a98c45a0f526c5c3e to your computer and use it in GitHub Desktop.
kubernetes primary-ds descriptor
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": "PersistentVolume", | |
"metadata": { | |
"name": "symmetric-engines", | |
"labels": { | |
"name": "symmetric-ds" | |
} | |
}, | |
"spec": { | |
"capacity": { | |
"storage": "50M" | |
}, | |
"accessModes": ["ReadWriteMany"], | |
"hostPath": { | |
"path": "/nfsfileshare/symmetric-ds" | |
}, | |
"persistentVolumeReclaimPolicy": "Retain" | |
} | |
} | |
{ | |
"apiVersion": "v1", | |
"kind": "PersistentVolume", | |
"metadata": { | |
"name": "symmetric-secondary-engines", | |
"labels": { | |
"name": "symmetric-secondary-ds" | |
} | |
}, | |
"spec": { | |
"capacity": { | |
"storage": "50M" | |
}, | |
"accessModes": ["ReadWriteMany"], | |
"hostPath": { | |
"path": "/nfsfileshare/symmetric-secondary-ds" | |
}, | |
"persistentVolumeReclaimPolicy": "Retain" | |
} | |
} |
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
{ | |
"kind": "PersistentVolumeClaim", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "symmetric-engines" | |
}, | |
"spec": { | |
"selector": { | |
"matchLabels": { | |
"name": "symmetric-ds" | |
} | |
}, | |
"accessModes": [ | |
"ReadWriteMany" | |
], | |
"resources": { | |
"requests": { | |
"storage": "50M" | |
} | |
} | |
} | |
} | |
{ | |
"kind": "PersistentVolumeClaim", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "symmetric-secondary-engines" | |
}, | |
"spec": { | |
"selector": { | |
"matchLabels": { | |
"name": "symmetric-secondary-ds" | |
} | |
}, | |
"accessModes": [ | |
"ReadWriteMany" | |
], | |
"resources": { | |
"requests": { | |
"storage": "50M" | |
} | |
} | |
} | |
} |
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
{ | |
"kind": "Service", | |
"apiVersion": "v1", | |
"metadata": { | |
"name":"secondary-ds" | |
}, | |
"spec": { | |
"ports": [{ | |
"protocol": "TCP", | |
"port": 31416, | |
"targetPort": 31415, | |
"nodePort": 30001 | |
}], | |
"selector": { | |
"name": "secondary-ds" | |
}, | |
"type": "NodePort", | |
"sessionAffinity": "None" | |
} | |
} | |
{ | |
"kind": "Pod", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "secondary-ds", | |
"namespace": "demo", | |
"labels": { | |
"name": "secondary-ds" | |
} | |
}, | |
"spec": { | |
"containers": [ | |
{ | |
"name": "symmetric-ds", | |
"image": "jumpmind/symmetricds:latest", | |
"ports": [ | |
{ | |
"containerPort": 31415, | |
"protocol": "TCP" | |
} | |
], | |
"volumeMounts": [ | |
{ | |
"mountPath": "/opt/symmetric-ds/engines", | |
"name": "engines2", | |
"readOnly": false | |
}, | |
{ | |
"mountPath": "/opt/symmetric-ds/logs", | |
"name": "logs", | |
"readOnly": false | |
} | |
] | |
} | |
], | |
"volumes": [ | |
{ | |
"name": "engines2", | |
"persistentVolumeClaim": { | |
"claimName": "symmetric-secondary-engines" | |
} | |
}, | |
{ | |
"name": "logs", | |
"emptyDir": {} | |
} | |
] | |
} | |
} |
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
{ | |
"kind": "Service", | |
"apiVersion": "v1", | |
"metadata": { | |
"name":"primary-ds" | |
}, | |
"spec": { | |
"ports": [{ | |
"protocol": "TCP", | |
"port": 31415, | |
"targetPort": 31415, | |
"nodePort": 30000 | |
}], | |
"selector": { | |
"name": "primary-ds" | |
}, | |
"type": "NodePort", | |
"sessionAffinity": "None" | |
} | |
} | |
{ | |
"kind": "Pod", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "primary-ds", | |
"namespace": "demo", | |
"labels": { | |
"name": "primary-ds" | |
} | |
}, | |
"spec": { | |
"containers": [ | |
{ | |
"name": "symmetric-ds", | |
"image": "jumpmind/symmetricds:latest", | |
"ports": [ | |
{ | |
"containerPort": 31415, | |
"protocol": "TCP" | |
} | |
], | |
"volumeMounts": [ | |
{ | |
"mountPath": "/opt/symmetric-ds/engines", | |
"name": "engines", | |
"readOnly": false | |
}, | |
{ | |
"mountPath": "/opt/symmetric-ds/logs", | |
"name": "logs", | |
"readOnly": false | |
} | |
] | |
} | |
], | |
"volumes": [ | |
{ | |
"name": "engines", | |
"persistentVolumeClaim": { | |
"claimName": "symmetric-engines" | |
} | |
}, | |
{ | |
"name": "logs", | |
"emptyDir": {} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment