You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

157 lines
4.0 KiB

{
"apiVersion": "v1",
"kind": "Template",
"metadata": {
"name": "clamav",
"creationTimestamp": null
},
"objects": [
{
"apiVersion": "v1",
"kind": "DeploymentConfig",
"metadata": {
"name": "clamav",
"generation": 1,
"creationTimestamp": null,
"labels": {
"app": "clamav"
}
},
"spec": {
"replicas": 1,
"selector": {
"app": "clamav",
"deploymentconfig": "clamav"
},
"strategy": {
"activeDeadlineSeconds": 21600,
"type": "Rolling"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"app": "clamav",
"deploymentconfig": "clamav"
}
},
"spec": {
"containers": [
{
"imagePullPolicy": "Always",
"name": "clamav",
"image": "docker-registry.default.svc:5000/jag-csb-edivorce-tools/clamav:${TAG_NAME}",
"ports": [
{
"containerPort": 3310,
"protocol": "TCP"
}
],
"resources": {
"limits": {
"cpu": "1100m",
"memory": "2G"
},
"requests": {
"cpu": "100m",
"memory": "500M"
}
},
"livenessProbe": {
"tcpSocket": {
"port": 3310
},
"initialDelaySeconds": 240,
"timeoutSeconds": 3,
"periodSeconds": 10,
"successThreshold": 1,
"failureThreshold": 3
},
"readinessProbe": {
"tcpSocket": {
"port": 3310
},
"initialDelaySeconds": 240,
"timeoutSeconds": 3,
"periodSeconds": 10,
"successThreshold": 1,
"failureThreshold": 3
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File"
}
],
"dnsPolicy": "ClusterFirst",
"restartPolicy": "Always",
"securityContext": {},
"schedulerName": "default-scheduler",
"terminationGracePeriodSeconds": 30
}
},
"test": false,
"triggers": [
{
"type": "ConfigChange"
},
{
"type": "ImageChange",
"imageChangeParams": {
"automatic": true,
"containerNames": [
"clamav"
],
"from": {
"kind": "ImageStreamTag",
"namespace": "jag-csb-edivorce-tools",
"name": "clamav:${TAG_NAME}"
}
}
}
]
},
"status": {
"latestVersion": 0,
"observedGeneration": 0,
"replicas": 0,
"updatedReplicas": 0,
"availableReplicas": 0,
"unavailableReplicas": 0
}
},
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"name": "clamav",
"creationTimestamp": null,
"labels": {
"app": "clamav"
}
},
"spec": {
"ports": [
{
"name": "3310-tcp",
"port": 3310,
"protocol": "TCP",
"targetPort": 3310
}
],
"selector": {
"deploymentconfig": "clamav"
},
"sessionAffinity": "None",
"type": "ClusterIP"
}
}
],
"parameters": [
{
"description": "The TAG name for this environment, e.g., dev, test, prod",
"displayName": "Env TAG name",
"name": "TAG_NAME",
"value": "latest",
"required": true
}
]
}