Created
November 20, 2015 08:58
-
-
Save mlamina/d8054f6765bcc9339737 to your computer and use it in GitHub Desktop.
YAML Definition of my Kubernetes service, including load balancer IP
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
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: api-lb | |
namespace: production | |
labels: | |
app: backend | |
role: api | |
component: ssl-proxy-service | |
spec: | |
ports: | |
- name: https | |
port: 443 | |
targetPort: https | |
protocol: TCP | |
- name: http | |
port: 80 | |
targetPort: http | |
protocol: TCP | |
selector: | |
app: backend | |
role: api | |
component: ssl-proxy | |
loadBalancerIP: "104.155.XXX.YYY" | |
type: LoadBalancer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment