#!/bin/bash # installation awx sur k3s export NAMESPACE=awx AWX_HOST="awx.sio.lan" REL="2.0.1" [ -x /usr/local/bin/k3s-uninstall.sh ] &&  /usr/local/bin/k3s-uninstall.sh sudo rm -rf /data sudo rm -rf awx* export NAMESPACE=awx #export http_proxy=http://10.121.38.1:8080 #export https_proxy=http://10.121.38.1:8080 curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 644 cd ~ git clone https://github.com/ansible/awx-operator.git cd awx-operator git checkout "${REL}" export NAMESPACE=awx make deploy kubectl -n awx get all cd ~ git clone https://github.com/kurokobo/awx-on-k3s.git cd awx-on-k3s git checkout "${REL}" #AWX_HOST="awx.sio.lan" openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -out ./base/tls.crt -keyout ./base/tls.key -subj "/CN=${AWX_HOST}/O=${AWX_HOST}" -addext "subjectAltName = DNS:${AWX_HOST}" sed -i "s/awx.example.com/${AWX_HOST}/" base/awx.yaml sudo mkdir -p /data/postgres-13 sudo mkdir -p /data/projects sudo chmod 755 /data/postgres-13 sudo chown 1000:0 /data/projects kubectl apply -k base kubectl -n awx logs -f deployments/awx-operator-controller-manager kubectl -n awx get awx,all,ingress,secrets