Difference between revisions of "Kubernetes Hairpin-Proxy"
Jump to navigation
Jump to search
(Created page with "Still doesn't work ``` kubectl get svc -n ingress | grep ingress output: nginx-ingress-microk8s-controller-86rjl.ingress.svc.cluster.local kubectl edit deploy hairpin-proxy-...") |
|||
| Line 1: | Line 1: | ||
| + | Trying to get this to work on microk8s | ||
| + | |||
| + | https://github.com/compumike/hairpin-proxy | ||
| + | |||
| + | kubectl apply -f https://raw.githubusercontent.com/compumike/hairpin-proxy/v0.1.2/deploy.yml | ||
| + | |||
| + | kubectl get configmap -n kube-system coredns -o=jsonpath='{.data.Corefile}' | ||
| + | |||
| + | |||
| + | |||
Still doesn't work | Still doesn't work | ||
Revision as of 00:11, 15 February 2021
Trying to get this to work on microk8s
https://github.com/compumike/hairpin-proxy
kubectl apply -f https://raw.githubusercontent.com/compumike/hairpin-proxy/v0.1.2/deploy.yml
kubectl get configmap -n kube-system coredns -o=jsonpath='{.data.Corefile}'
Still doesn't work
kubectl get svc -n ingress | grep ingress
output: nginx-ingress-microk8s-controller-86rjl.ingress.svc.cluster.local
kubectl edit deploy hairpin-proxy-haproxy -n hairpin-proxy
# Modify with below
spec:
containers:
- env:
- name: TARGET_SERVER
value: nginx-ingress-microk8s-controller-86rjl.ingress.svc.cluster.local
image: compumike/hairpin-proxy-haproxy:0.1.2
kubectl expose pod nginx-ingress-microk8s-controller-86rjl --type=NodePort --port=8080 -n ingress