k3s/k3d question, I created a couple port mappings...
# k3d
f
k3s/k3d question, I created a couple port mappings when I created the k3d cluster, one works and one does not 30786 -> 29786. I have been execing into the pod and then running a curl 'localhost:29786', because I can't use port 30786 from the outside ... why might this be? And also, I'd really just like to map the port 29786 from the outside to in the pod if possible
b
Copy code
sudo k3d cluster create $1 \
  --image ${IMAGE} \
  --volume "$(pwd)/ca-bundle.crt:/etc/ssl/certs/ca-bundle.crt" \
  -p "2011:32011/tcp@server:0" \
  -p "29786:30786/tcp@server:0"

here's where i expose the port:

$ cat service.yaml 
apiVersion: v1
kind: Service
metadata:
  labels:
    app: vpn-proxy
  name: vpn-proxy
spec:
  type: NodePort
  ports:
  - name: proxy-port
    nodePort: 32011
    port: 2011
    protocol: TCP
    targetPort: 3128
  - name: vpn-callback
    nodePort: 30786
    port: 29786
    protocol: TCP
    targetPort: 29786
  selector:
    app: vpn-proxy