Created
August 14, 2016 19:17
-
-
Save duizendnegen/fad9cc2664e16a1067eb39d0e9e48218 to your computer and use it in GitHub Desktop.
API deployment
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: v1 | |
kind: Deployment | |
metadata: | |
name: traintracks-api | |
spec: | |
replicas: 3 | |
template: | |
metadata: | |
labels: | |
app: traintracks-api | |
spec: | |
containers: | |
- name: traintracks-api | |
image: gcr.io/traintracks-1009/traintracks_api | |
ports: | |
- containerPort: 80 | |
name: http | |
protocol: TCP | |
restartPolicy: Always |
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: v1 | |
kind: Service | |
metadata: | |
name: traintracks-api | |
labels: | |
service: traintracks-api | |
spec: | |
type: LoadBalancer | |
selector: | |
app: traintracks-api | |
ports: | |
- name: http | |
port: 80 | |
protocol: TCP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment