{
"kind": "Template",
"apiVersion": "v1",
"metadata": {
"name": "jenkins-master",
"annotations": {
"description": "Jenkins service with Kubernetes plugin, without persistent storage. WARNING: Any data stored will be lost upon pod destruction. Only use this template for testing",
"iconClass": "icon-jenkins",
"tags": "instant-app,jenkins"
}
},
"labels": {
"template": "jenkins-master-template"
},
"parameters": [
{
"name": "JENKINS_SERVICE_NAME",
"displayName": "Jenkins Service Name",
"value": "jenkins"
}
],
"objects": [
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "${JENKINS_SERVICE_NAME}"
},
"spec": {
"ports": [
{
"name": "web",
"protocol": "TCP",
"port": 8080,
"targetPort": 8080,
"nodePort": 0
},
{
"name": "jnlp",
"protocol": "TCP",
"port": 50000,
"targetPort": 50000,
"nodePort": 0
}
],
"selector": {
"name": "${JENKINS_SERVICE_NAME}"
},
"type": "ClusterIP",
"sessionAffinity": "None"
}
}
]
}