Last active
August 29, 2015 14:25
-
-
Save morion4000/4f36c5b59a123958a40a to your computer and use it in GitHub Desktop.
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
#!/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