Hi
I'm facing with problem regarding AWX deployment on k8s. Currently my deployment is set to nodeport (target port 30080). K8s environment consists of 1 master node and 2 workers. Node IPs let's say are:
- 1.1.1.1 - master node
- 2.2.2.2 - worker1
- 3.3.3.3 - worker2
For deployment I'm using helm chart. Currently I can access to AWX via all IPs on nodeport port (master and both workers). The goal is to be able access AWX via only master node IP on port 80 (in future I want to use TLS so access will be via port 443 and domain name (for example
awx-platform.com)). I'm completely new to k8s and as far as read, I should use service type load balancer or ingress (one of these) but I'm lost at the stage of implementation service type different than nodeport. In k8s documentation I found that deployment manifest should be edited but as far I'm using helm I have not this type of manifest. Maybe I should change something in service manifest? Here is my ansible-awx.yaml service manifest:
---
apiVersion:
awx.ansible.com/v1beta1kind: AWX
metadata:
name: ansible-awx
namespace: awx
spec:
service_type: nodeport
nodeport_port: 30080
postgres_storage_class: local-storage
Details of environment:
- OS: Ubuntu 20.04.6 LTS Focal Fossa
- k8s version: 1.18.5
- helm version: 3.12.2
- docker version: 20.10.21
- AWX version: 22.5.0
Thank you for any kind of help :)