-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Publish an examlple playbook for deploying AWX on K3s #334
Comments
@djdanielsson sounds awesome, similar to ascender-install |
@djdanielsson @kmf Yes, this has been considered in the past and is of course technically possible. I also know it is very helpful for users. The concern with automating deployment with Ansible is that the build procedure becomes a black box. I want my guide to not only provide instructions to make it as easy as possible for users to get a working AWX, but also provide a role as a hands-on guide to getting started with Kubernetes, like Kubernetes 101 labs. Since knowledges and skills to use Kubernetes is a necessary part of using recent AWX. For this reason, I am not actively accustomed to publishing the guide as a playbook, as I want to work through it, step by step, so that users know what they are doing. It may be feasible to at least provide a playbook version as sub-content, rather than replacing the guide entirely. However, I am not sure if this should be done by me personally, as I am just a community member, not Red Hat. Any thought? |
I for one fully agree with the idea of having a guide one can follow step-by-step to learn how to install k3s, etc., and I've been grateful for the effort presented.
Maybe tasks in a playbook could be numbered to correspond with similarly numbered steps in the documentation. That way people reading could see how to implement in a play, and conversely, people following the playbook could refer to the numbered guide sections/steps. |
I can see and understand about this being a guide to help learn and agree that if you just provide a black box that isn't as helpful. I think @jpmens idea of linking the current documentation to the code could help explain everything but provide an automated solution at the same time. As for you being "just a community member" these are all open source applications, this is exactly the type of thing community members do, do not feel like you need to have some sort of position or title to be able to contribute, help others, or create solutions. The only difference between you and someone who works on the AWX team is they are getting payed to do it. I am not sure if you keep up with the AWX office hours or not but they even brought up how they were going to add some testing to try and catch some potential issues that they currently do not check for that can happen when using local storage due to how many people use your guide. |
@jpmens @djdanielsson |
you said you already had some code that did this, if you publish what you have already, I could try and help improve/expand it. I can try and build something from scratch but it will take longer. |
Hmm, the playbooks that I already have is for testing manual procedures in my guides. So the playbooks contains following tasks:
At this time I don't intend to make these playbooks public, because its purpose is different (testing guides v.s. deploying AWX) and it is inappropriate for deploying AWX, and several community members have already published a sort of "wrapper" for my repository.
Some community members have published some playbooks or roles differently than my guide. I don't know if these are all of that. |
Going back to @djdanielsson's original thought, if the guide had parseable bits which could produce the playbook ... something more than a template maybe.. |
I had embedded hidden comments that indicate code blocks in my guides, e.g.: https://github.com/kurokobo/awx-on-k3s/blame/main/README.md#L177 In fact, my (private) playbooks uses these hidden comments to extract commands from markdown files, to imitate manual procedure. |
I'm still fairly new to kubernetes, I was going to post a new thread but honestly, I think this probably belongs here, i know it isn't a playbook, but since i don't remember seeing a flavor specified in this thread I didn't want to make a playbook out of it. I'm using almalinux, and installing this to get AWX up and running requires a few extra steps. I will leave updating the readme up to a current contributor, you are more than welcome to take credit for my suggestions if that stuff matters to you. I don't know if this applies to other flavors, but from a fresh almalinux install, it does. Some of the steps i am going to post are already in the current readme. I used chatgpt 40 to help me research the steps but I can confirm they work. install from repo to keep updated easilysudo tee /etc/yum.repos.d/kubernetes.repo <<EOF sudo dnf install -y kubelet kubeadm kubectl --disableexcludes=kubernetes sudo systemctl enable --now kubelet Make sure firewall is updatedhttps://docs.k3s.io/installation/requirements?os=rhel#operating-systems install k3sfrom repo https://github.com/kurokobo/awx-on-k3scurl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.29.4+k3s1 sh -s - --write-kubeconfig-mode 644 Check and make sure ~/.kube/config exists, else follow...mkdir -p ~/.kube install operator. update version to latest versioncd ~ kubectl apply -k operator |
@davidmacdonald80 |
I've been thinking about this for a while, but I've come to the conclusion that it's difficult for me to maintain a strong passion for implementing and continuously maintaining this. Thank you to everyone who gave their opinions. I'm sorry I couldn't meet your expectations. If you're interested in this issue, please feel free to implement it in your own repository and share it. Thank you. |
Looking over this repo, first off this looks like great content and very useful for someone like myself who does not know a lot about k3s/k8s to deploy AWX on. I was wondering though you say make changes to these config files in your instructions, which made me wonder, what about creating a jinja template instead and use ansible to create these configuration files and deploy them to k3s or at least to a repo that then something like argo could use?
The text was updated successfully, but these errors were encountered: