Skip to content

Instantly share code, notes, and snippets.

@morion4000
Last active August 29, 2015 14:25
Show Gist options
  • Save morion4000/4f36c5b59a123958a40a to your computer and use it in GitHub Desktop.
Save morion4000/4f36c5b59a123958a40a to your computer and use it in GitHub Desktop.
#!/bin/bash
cat > utilities-controller.json <<EOF
{
"kind": "ReplicationController",
"apiVersion": "v1",
"metadata": {
"name": "utilities-service",
"labels": {
"name": "utilities-service"
}
},
"spec": {
"replicas": 1,
"selector": {
"name": "utilities-service"
},
"template": {
"metadata": {
"labels": {
"name": "utilities-service",
"deployment": "${WERCKER_GIT_COMMIT}"
}
},
"spec": {
"containers": [
{
"imagePullPolicy": "Always",
"image": "quay.io/something/utilities-service:${WERCKER_GIT_COMMIT}",
"name": "utilities-service",
"ports": [
{
"name": "http-server",
"containerPort": 3000,
"protocol": "TCP"
}
]
}
],
"imagePullSecrets": [
{
"name":"myregistrykey"
}
]
}
}
}
}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment