After I deploy awx using minikube I am unable to log into the UI.
I checked selinux, verifying the user exists etc… I still get “There was a problem signing in. Please try again.”. I think the admin account exists, at least it tells me it does.
I run this and get the password:
minikube kubectl – get secret awx-admin-password -o jsonpath=‘{.data.password}’ | base64 --decode
I tried to create superuser just in case but it states super user admin already exists, so I created another dummy account and that still doesn’t work. Hey at least the web page looks shiny :).
This is a RHeL 8.3 server
Below is a bit of what I did to deploy.
wget https://github.com/kubernetes/minikube/releases/download/v1.18.1/minikube-1.18.1-0.x86_64.rpm
–2021-05-25 17:45:40-- https://github.com/kubernetes/minikube/releases/download/v1.18.1/minikube-1.18.1-0.x86_64.rpm
Resolving github.com (github.com)… 140.82.112.3
Connecting to github.com (github.com)|140.82.112.3|:443… connected.
HTTP request sent, awaiting response… 302 Found
Location: https://github-releases.githubusercontent.com/56353740/d7369b80-7ce4-11eb-9690-bbd4b776a344?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210525%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210525T214541Z&X-Amz-Expires=300&X-Amz-Signature=583793329787419a56b29eba3d16cfec4164d2a294ac4b26ffa153d21c9d768e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=56353740&response-content-disposition=attachment%3B%20filename%3Dminikube-1.18.1-0.x86_64.rpm&response-content-type=application%2Foctet-stream [following]
–2021-05-25 17:45:41-- https://github-releases.githubusercontent.com/56353740/d7369b80-7ce4-11eb-9690-bbd4b776a344?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210525%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210525T214541Z&X-Amz-Expires=300&X-Amz-Signature=583793329787419a56b29eba3d16cfec4164d2a294ac4b26ffa153d21c9d768e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=56353740&response-content-disposition=attachment%3B%20filename%3Dminikube-1.18.1-0.x86_64.rpm&response-content-type=application%2Foctet-stream
Resolving github-releases.githubusercontent.com (github-releases.githubusercontent.com)… 185.199.108.154, 185.199.109.154, 185.199.110.154, …
Connecting to github-releases.githubusercontent.com (github-releases.githubusercontent.com)|185.199.108.154|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 14329512 (14M) [application/octet-stream]
Saving to: ‘minikube-1.18.1-0.x86_64.rpm’
minikube-1.18.1-0.x86_64.rpm 100%[========================================================================================================================================>] 13.67M 10.4MB/s in 1.3s
[null@server01 awx]$ sudo rpm -Uvh minikube-1.18.1-0.x86_64.rpm
[null@server01 awx]$ minikube start --driver=podman --container-runtime=cri-o --cpus=4 --memory=8g --addons=ingress
- minikube v1.18.1 on Redhat 8.3
- Using the podman driver based on user configuration
- minikube 1.20.0 is available! Download it: https://github.com/kubernetes/minikube/releases/tag/v1.20.0
- To disable this notice, run: ‘minikube config set WantUpdateNotification false’
! Your cgroup does not allow setting memory.
- More information: https://docs.doInfo.com/engine/install/linux-postinstall/#your-kernel-does-not-support-cgroup-swap-limit-capabilities
- Starting control plane node minikube in cluster minikube
- Downloading Kubernetes v1.20.2 preload …
preloaded-images-k8s-v9-v1…: 560.29 MiB / 560.29 MiB 100.00% 6.62 MiB
- Creating podman container (CPUs=4, Memory=8192MB) …
- Preparing Kubernetes v1.20.2 on CRI-O 1.20.0 …
- Generating certificates and keys …
- Booting up control plane …
- Configuring RBAC rules …
- Configuring CNI (Container Networking Interface) …
- Verifying Kubernetes components…
- Using image gcr.io/k8s-minikube/storage-provisioner:v4
- Using image us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:v0.40.2
- Using image jettech/kube-webhook-certgen:v1.2.2
- Using image jettech/kube-webhook-certgen:v1.3.0
- Verifying ingress addon…
- Enabled addons: storage-provisioner, default-storageclass, ingress
- kubectl not found. If you need it, try: ‘minikube kubectl – get pods -A’
- Done! kubectl is now configured to use “minikube” cluster and “default” namespace by default
[null@server01 awx]$ minikube kubectl – apply -f https://raw.githubusercontent.com/ansible/awx-operator/0.9.0/deploy/awx-operator.yaml
kubectl.sha256: 64 B / 64 B [--------------------------] 100.00% ? p/s 0s
kubectl: 38.37 MiB / 38.37 MiB [---------------] 100.00% 1.37 MiB p/s 28s
customresourcedefinition.apiextensions.k8s.io/awxs.awx.ansible.com created
clusterrole.rbac.authorization.k8s.io/awx-operator created
clusterrolebinding.rbac.authorization.k8s.io/awx-operator created
serviceaccount/awx-operator created
deployment.apps/awx-operator created
[null@server01 awx]$ minikube kubectl apply – -f myawx.yml
awx.awx.ansible.com/awx created
[null@server01 awx]$ watch minikube kubectl – get pods -A
[null@server01 awx]$ minikube service list
-------------|------------------------------------|--------------|---------------------------|
NAMESPACE NAME TARGET PORT URL default awx-operator-metrics No node port default awx-postgres No node port default awx-service http/80 http://192.168.49.2:31377 default kubernetes No node port kube-system ingress-nginx-controller-admission No node port kube-system kube-dns No node port ------------- ------------------------------------ -------------- ---------------------------
[null@server01 awx]$ minikube service awx-service --url
http://192.168.49.2:31377