Created
October 16, 2017 13:31
-
-
Save radu-matei/4802dc126af06829b1904c49e4b97d57 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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: private-api | |
spec: | |
replicas: 3 | |
template: | |
metadata: | |
labels: | |
app: private-api | |
spec: | |
containers: | |
- name: private-api | |
image: radumatei/private-api | |
ports: | |
- containerPort: 8080 | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: private-api-internal | |
annotations: | |
service.beta.kubernetes.io/azure-load-balancer-internal: "true" | |
spec: | |
selector: | |
app: private-api | |
ports: | |
- port: 80 | |
targetPort: 8080 | |
type: LoadBalancer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment