My network infrastructure only allows web browsers to connect to standard web ports like 80, 443, and 8080. I can’t use the default port (8800). I need to forward traffic from port 8080 to the platform admin console.
Version and installation information
Product: Continuous Delivery for Puppet Enterprise
Version: 4.2.3
Installation type: Any
Solution
Use these steps to create a service to forward traffic from the desired port to the platform admin console.
-
Set the
nodePort
to the desired port. On the Continuous Delivery for PE host system, create a file namedkotsadm-nodeport.yaml
with the following contents. In this example, connections to port 8080 are forwarded to the platform admin console.apiVersion: v1 kind: Service metadata: name: kotsadm-nodeport namespace: default spec: ports: - name: http port: 3000 protocol: TCP targetPort: http nodePort: 8080 selector: app: kotsadm type: NodePort
-
Apply the change to the kotsadm service. On the command line, run
kubectl apply -f kotsadm-nodeport.yaml
-
Confirm the change took effect. Run
kubectl get svc kotsadm-nodeport
The new
nodePort
will be displayed in the output in the PORT(S) column. When you connect to the Continuous Delivery for PE host on port 8080, the browser should redirect to the platform admin console.# kubectl get svc kotsadm-nodeport NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kotsadm-nodeport NodePort 10.96.2.90 <none> 3000:8080/TCP 47m
To stop forwarding
If port forwarding is no longer required, remove the kotsadm-nodeport service. On the command line, run kubectl delete svc kotsadm-nodeport
How can we improve this article?
0 comments
Please sign in to leave a comment.
Related articles