Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 page not found #24

Closed
SorenSj opened this issue Dec 30, 2021 · 4 comments
Closed

404 page not found #24

SorenSj opened this issue Dec 30, 2021 · 4 comments

Comments

@SorenSj
Copy link

SorenSj commented Dec 30, 2021

Environment

k3s version: v1.22.5+k3s1 (405bf79d)

  • OS: Rocky Linux 8.5
  • AWX Operator: 0.15.0

Description

The installation and configuration of awx goes immediately well. There are no error messages.
But when I try to access awx via my ip address (http://10.10.0.9) the error message comes: "404 page not found". The same goes for access via https.
What am I missing?

@kurokobo
Copy link
Owner

Access AWX via hostname instead of IP address. Kubernetes routes your HTTP trafic according to the HOST header in the HTTP request.

Therefore, if you specify awx.example.com as described in my repo,

...
spec:
  ...
  ingress_type: ingress
  ingress_tls_secret: awx-secret-tls
  hostname: awx.example.com     👈👈👈
...

your AWX can be accessed via https://awx.example.com instead of IP address. So you should configure your DNS or hosts file on your client (where the brower is running).

@SorenSj
Copy link
Author

SorenSj commented Dec 30, 2021

It's working! Thanks a lot :-)

@SorenSj SorenSj closed this as completed Dec 30, 2021
@passe4wedo
Copy link

passe4wedo commented Feb 21, 2022

Is there the possibility to expose the service in order to access it by using the IPAddress:Port only?
It would be useful for the integration of managed load balancers such as AWS ALB (for health check purposes and external certificate management).

@kurokobo
Copy link
Owner

@passe4wedo
There is service_type parameter instead of ingress_type to expose your service via NodePort or LoadBalancer. Note that NodePort has an issue with not being able to specify a port(ansible/awx-operator#788), so you should wait for the next release if you want to use fixed port for NodePort.

But if you create an Ingress through AWX Operator on EKS, the ALB will be used as actual implementation, so you can manage it through AWX Operator by using ingress_annotations and other params, instead of deploying Ingress yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants