Skip to content

Instantly share code, notes, and snippets.

@danehans
Created April 11, 2016 18:48
Show Gist options
  • Select an option

  • Save danehans/c4ac53284cf527dbf82c15616e1840b7 to your computer and use it in GitHub Desktop.

Select an option

Save danehans/c4ac53284cf527dbf82c15616e1840b7 to your computer and use it in GitHub Desktop.
haproxy kube ha
apiVersion: v1
kind: Pod
metadata:
name: haproxy
spec:
hostNetwork: true
containers:
- name: haproxy
image: docker pull million12/haproxy:1.6.3 # From https://hub.docker.com/r/million12/haproxy/
ports:
# Note: Ports for kube-api manifest would need to change if running haproxy/kube-api on same kubelet.
- containerPort: 443
hostPort: 443
name: https
- containerPort: 7080
hostPort: 7080
name: http
- containerPort: 8080
hostPort: 8080
name: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment