Skip to content

Instantly share code, notes, and snippets.

@jstrachan
Created June 22, 2015 16:18
Show Gist options
  • Save jstrachan/34c6da86149c4ee8effd to your computer and use it in GitHub Desktop.
Save jstrachan/34c6da86149c4ee8effd to your computer and use it in GitHub Desktop.
{
"apiVersion" : "v1",
"kind" : "ReplicationController",
"metadata" : {
"annotations" : { },
"labels" : {
"component" : "jenkins",
"provider" : "fabric8"
},
"name" : "jenkins"
},
"spec" : {
"replicas" : 1,
"selector" : {
"component" : "jenkins",
"provider" : "fabric8"
},
"template" : {
"metadata" : {
"annotations" : { },
"labels" : {
"component" : "jenkins",
"provider" : "fabric8"
}
},
"spec" : {
"containers" : [ {
"args" : [ ],
"command" : [ ],
"env" : [ {
"name" : "KUBERNETES_CLIENT_KEY_FILE",
"value" : "/etc/secret-volume/admin-key"
}, {
"name" : "JENKINS_GOGS_PASSWORD",
"value" : "${JENKINS_GOGS_PASSWORD}"
}, {
"name" : "CGO_ENABLED",
"value" : "0"
}, {
"name" : "KUBERNETES_CLIENT_CERTIFICATE_FILE",
"value" : "/etc/secret-volume/admin-cert"
}, {
"name" : "JENKINS_GOGS_USER",
"value" : "${JENKINS_GOGS_USER}"
}, {
"name" : "JENKINS_GOGS_EMAIL",
"value" : "${JENKINS_GOGS_EMAIL}"
}, {
"name" : "SEED_GIT_URL",
"value" : "${SEED_GIT_URL}"
}, {
"name" : "KUBERNETES_NAMESPACE",
"valueFrom" : {
"fieldRef" : {
"fieldPath" : "metadata.namespace"
}
}
} ],
"image" : "fabric8/jenkins",
"imagePullPolicy" : "IfNotPresent",
"name" : "jenkins",
"ports" : [ {
"containerPort" : 8080,
"name" : "http"
} ],
"securityContext" : {
"privileged" : true
},
"volumeMounts" : [ {
"mountPath" : "/var/jenkins_home/workspace",
"name" : "jenkins-workspace",
"readOnly" : false
}, {
"mountPath" : "/etc/secret-volume",
"name" : "openshift-cert-secrets",
"readOnly" : false
}, {
"mountPath" : "/var/run/docker.sock",
"name" : "docker-socket",
"readOnly" : false
} ]
} ],
"imagePullSecrets" : [ ],
"nodeSelector" : { },
"serviceAccount" : "fabric8",
"volumes" : [ {
"name" : "openshift-cert-secrets",
"secret" : {
"secretName" : "openshift-cert-secrets"
}
}, {
"hostPath" : {
"path" : "/var/run/docker.sock"
},
"name" : "docker-socket"
}, {
"emptyDir" : {
"medium" : ""
},
"name" : "jenkins-workspace"
} ]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment