Last active
December 24, 2018 10:33
-
-
Save nfrankel/c79493c21b6096d80b1866138bd05a93 to your computer and use it in GitHub Desktop.
This file contains 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: config-mgmt-deploy | |
labels: | |
app: config-mgmt | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: config-mgmt | |
template: | |
metadata: | |
labels: | |
app: config-mgmt | |
spec: | |
containers: | |
- name: config-mgmt | |
image: nfrankel/configmgmt:0.0.3-SNAPSHOT | |
volumeMounts: | |
- name: config | |
mountPath: /config | |
readOnly: true | |
ports: | |
- containerPort: 8080 | |
initContainers: | |
- name: git-clone | |
image: alpine/git:1.0.4 | |
command: ['/bin/sh', '-c', 'git clone --branch v1.0.0 https://github.com/exoscale-labs/config-mgmt-properties.git && mv config-mgmt-properties/dev/* /config'] | |
volumeMounts: | |
- name: config | |
mountPath: /config | |
volumes: | |
- name: config | |
emptyDir: {} | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: config-mgmt-service | |
spec: | |
selector: | |
app: config-mgmt | |
ports: | |
- port: 8080 | |
nodePort: 30001 | |
type: NodePort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment