AWXλ₯Ό λ°°ν¬ν ν(awx-operator μ¬μ©) awx-admin-password
μνΈκ° μμ΅λλ€. μνΈλ‘ νμ©λμ§ μλ awx-secret-key
μνΈκ° μμ΅λλ€. tower_admin_password_secret
λ³μλ₯Ό μ£Όλ €κ³ νμ§λ§ μν¬λ¦Ώλ μμ±λμ§ μμ΅λλ€.
λ°λΌμ AWXκ° λ°°ν¬λκ³ λ‘κ·ΈμΈ νμ΄μ§κ° μ΄λ¦¬μ§λ§ λ‘κ·ΈμΈν μ μλ λ°©λ²μ΄ μμ΅λλ€.
μλ νμΈμ, λ€μμ μ¬μ©νμ¬ μ€μΉ λΉλ°λ²νΈλ₯Ό μ¬μ€μ νμ΅λλ€.
http://vcloud-lab.com/entries/devops/reset-ansible-awx-tower-admin-password
awx-manage changepassword κ΄λ¦¬μ
μ¬μ©μκ° μμΌλ©΄ λ€μμ μνν΄μΌ ν©λλ€.
awx-manage createsuperuser --user κ΄λ¦¬μ
awx_task 컨ν μ΄λμ sshνλ €λ©΄ λ μ¦λ₯Ό μ€μΉνκ³ λ€μμμ kubeconfigλ₯Ό κ°μ Έμ¬ μ μμ΅λλ€.
kubectl κ΅¬μ± λ³΄κΈ°
μ΄ λ°©λ²μ μ¬μ©νμ¬ μ΄λ¦μ΄ adminμ΄ μλ μνΌμ μ λ₯Ό λ§λ€λ €κ³ μλνμ§λ§ μλνμ§ μκ³ adminμΌλ‘ μλν©λλ€. κ°μ¬ ν΄μ.
μ΄μ¨λ λ¬Έμλ νμ€μ λ°μνμ§ μμ΅λλ€.
μλ νμΈμ, μ λ κ°μ λ¬Έμ μ μ§λ©΄νκ³ λͺ μκ° λμ awx-web λ° awx-task 컨ν μ΄λλ₯Ό κ²μ¬ν ν ν΄κ²°μ± μ μ°Ύμμ΅λλ€. :)
devel λΈλμΉμ awx νμ¬ λ²μ μ΄ μμ μ μ΄μ§ μκ³ admin μ¬μ©μλ₯Ό μ ν μμ±νμ§ μλ κ² κ°μ΅λλ€.
λ°λΌμ AWX Operator λ° Minikubeκ° μλ μ€μΉ μ§μΉ¨μ μ΄ λͺ
λ Ήμ μλνμ§ μμ΅λλ€.
minikube kubectl -- get secret awx-admin-password -o jsonpath='{.data.password}' | base64 --decode
μ΄ λ¬Έμ λ₯Ό ν΄κ²°νλ €λ©΄ λ€μμ μ€νν μ μμ΅λλ€.
minikube kubectl get pods
κ·Έλ° λ€μ κ΅μ²΄
minikube kubectl exec pod/<awx_pod_name> -- --container awx-web -it awx-manage createsuperuser
κΈ°λ³Έ awx μ΄λ¦μΌλ‘ μ¬μ©μλ₯Ό λ§λ€μκ³ μλ²½νκ² μλν©λλ€.
ν¬λ§, λμμ΄ λ κ²μ
λλ€ :)
κ°μ¬ν©λλ€. μ΄λ―Έ awx-web λ΄λΆμμ κ΄λ¦¬μ μνΌμ μ λ₯Ό λ§λ€μμ΅λλ€.
κ΄λ¦¬μ μ¬μ©μ μμ±μ λ²κ·Έκ° μμΌλ―λ‘ μ΄κ²μ μ΄μ΄ λμμμ€.
λλΆμ μλν©λλ€.
Kubernetes ν΄λ¬μ€ν°: kubectl exec pod/<awx_pod_name> --container awx-web -it awx-manage createsuperuser
λ―ΈλνλΈμμ : minikube kubectl exec pod/<awx_pod_name> -- --container awx-web -it awx-manage createsuperuser
μ¬λ¬λΆ μλ νμΈμ,
λ΄ μκ°μ λΉμ μ μ΄ https://github.com/ansible/awx-operator/issues/124 μ μν₯μ λ°μ μ μμ΅λλ€.
TL;DR: CRD λ° λ
Όλ¦¬μ νμ¬ devel
κ° λ°λμ 0.6.0
μ ν¨κ» μλνλ κ²μ μλλλ€. μμ λ¬Έμ κ° ν΄κ²°λλ λμ μ§κΈ μ΄ λ¬Έμ λ₯Ό ν΄κ²°νλ €λ©΄ λ€μ ν¨ν΄μ λ°λ₯΄μΈμ.
operator-sdk==0.19.4
https://v0-19-x.sdk.operatorframework.io/docs/install-operator-sdk/operator-sdk build <url>:<tag>
λΉλ(μ΄ μ μ₯μμ 루νΈμ μμ)docker push <url>:<tag>
νΈμλμμ΄ λμκΈ°λ₯Ό λ°λλλ€,
μλ
νμΈμ @Spredzy , κ°μ¬ν©λλ€. μ΄λ―Έμ§λ₯Ό λ§λ€κ³ κ΅μ²΄νλλ° μλν©λλ€.
μ΄ λΆμΌμΉκ° 곧 μμ λκΈ°λ₯Ό λ°λλλ€.
κ°μ₯ μ μ©ν λκΈ
μλ νμΈμ, μ λ κ°μ λ¬Έμ μ μ§λ©΄νκ³ λͺ μκ° λμ awx-web λ° awx-task 컨ν μ΄λλ₯Ό κ²μ¬ν ν ν΄κ²°μ± μ μ°Ύμμ΅λλ€. :)
devel λΈλμΉμ awx νμ¬ λ²μ μ΄ μμ μ μ΄μ§ μκ³ admin μ¬μ©μλ₯Ό μ ν μμ±νμ§ μλ κ² κ°μ΅λλ€.
λ°λΌμ AWX Operator λ° Minikubeκ° μλ μ€μΉ μ§μΉ¨μ μ΄ λͺ λ Ήμ μλνμ§ μμ΅λλ€.
minikube kubectl -- get secret awx-admin-password -o jsonpath='{.data.password}' | base64 --decode
μ΄ λ¬Έμ λ₯Ό ν΄κ²°νλ €λ©΄ λ€μμ μ€νν μ μμ΅λλ€.
awx ν¬λ μ΄λ¦μΌλ‘:
minikube kubectl get pods
κ·Έλ° λ€μ κ΅μ²΄
minikube kubectl exec pod/<awx_pod_name> -- --container awx-web -it awx-manage createsuperuser
κΈ°λ³Έ awx μ΄λ¦μΌλ‘ μ¬μ©μλ₯Ό λ§λ€μκ³ μλ²½νκ² μλν©λλ€.
ν¬λ§, λμμ΄ λ κ²μ λλ€ :)