HTTP to HTTPS Redirect with ORG. SSL Certs

Hi,

I have the deployed the AWX on K3S using the following kustomize.yaml:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
  # Find the latest tag here: https://github.com/ansible/awx-operator/releases
  - github.com/ansible/awx-operator/config/default?ref=2.13.1
  - awx.yaml

# Set the image tags to match the git version from above
images:
  - name: quay.io/ansible/awx-operator
    newTag: 2.13.1

# Specify a custom namespace in which to install AWX
namespace: awx

And my awx.yml is:

---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx
spec:
  ipv6_disabled: true
  service_type: nodeport
  nodeport_port: 30080

How do I redirect traffic to HTTPS? Do I need a separate nodeport? where do I store the SSL Certs for it to find?

Thanks

no one did this before? :open_mouth:

@kurokobo has an excellent write up here:

High level steps:

  1. Get your Certificate and Private Key for the hostname you want to use
  2. Create a kubtectl tls secret
  3. Update your kustomize files to include the secret

Iā€™m not available to pull my config at the moment to give you a specific example.

2 Likes

I ended up using this guide:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.