Outils pour utilisateurs

Outils du site


tech:notes_k8s_-_kind_pour_awx

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:notes_k8s_-_kind_pour_awx [2025/12/01 18:00] Jean-Baptistetech:notes_k8s_-_kind_pour_awx [2026/03/03 13:51] (Version actuelle) Jean-Baptiste
Ligne 5: Ligne 5:
  
 Voir :  Voir : 
 +* [[Pb cgroup controllers not delegated to non-privileged users - SystemD delegate failed - cgroupControllers]]
 * https://kind.sigs.k8s.io/docs/user/rootless/ * https://kind.sigs.k8s.io/docs/user/rootless/
 * https://docs.ansible.com/projects/awx-operator/en/latest/installation/kind-install.html * https://docs.ansible.com/projects/awx-operator/en/latest/installation/kind-install.html
Ligne 13: Ligne 14:
 Voir aussi : Voir aussi :
   * kinder   * kinder
 +  * https://github.com/kurokobo/awx-on-k3s
  
 Avantage / Intérêts d'utiliser AWX : Avantage / Intérêts d'utiliser AWX :
Ligne 71: Ligne 73:
 ~~~ ~~~
  
-Install de kind via asdf+Install de kind via asdf (voir aussi mise.run)
 ~~~bash ~~~bash
 asdf plugin add kind asdf plugin add kind
Ligne 93: Ligne 95:
 export KIND_EXPERIMENTAL_PROVIDER=podman export KIND_EXPERIMENTAL_PROVIDER=podman
 systemd-run --scope --user kind create cluster systemd-run --scope --user kind create cluster
 +~~~
 +
 +
 +Rootless
 +
 +Enable cgroup v2 delegation, see https://rootlesscontaine.rs/getting-started/common/cgroup2/ . This step is required; the rootless kubelet will fail to start without the proper cgroups delegated.
 +Source : https://docs.k3s.io/advanced
 +
 +Pour rootless avec iptables
 +
 +`/etc/modules-load.d/iptables.conf`
 +~~~
 +ip6_tables
 +ip6table_nat
 +ip_tables
 +iptable_nat
 +~~~
 +
 +Si nftable à la place d'iptables
 +~~~yaml
 +kind: Cluster
 +apiVersion: kind.x-k8s.io/v1alpha4
 +networking:
 +  ipFamily: ipv4
 +  kubeProxyMode: "nftables"
 ~~~ ~~~
  
Ligne 120: Ligne 147:
 ~~~ ~~~
  
 +
 +install Nginx Ingress controller
 +~~~bash
 +kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
 +~~~
  
 ------ ------
Ligne 191: Ligne 223:
 #TimeoutStopSec=60 #TimeoutStopSec=60
 ExecStart=/bin/bash -c '/usr/bin/podman start kind-control-plane &' ExecStart=/bin/bash -c '/usr/bin/podman start kind-control-plane &'
-ExecStop=/bin/bash '/usr/bin/podman stop kind-control-plane &'+ExecStop=/bin/bash -c '/usr/bin/podman stop kind-control-plane &'
 NotifyAccess=all NotifyAccess=all
  
Ligne 222: Ligne 254:
  
 Solution Solution
-~~~ 
-#sudo sysctl -w fs.inotify.max_user_watches=2099999999 
-#sudo sysctl -w fs.inotify.max_user_instances=2099999999 
-#sudo sysctl -w fs.inotify.max_queued_events=2099999999 
- 
-#sysctl -w fs.inotify.max_user_watches=1048576 
-#sysctl -w fs.inotify.max_user_instances=8192 
-~~~ 
- 
  
 ''/etc/sysctl.d/10-k8s.conf'' ''/etc/sysctl.d/10-k8s.conf''
Ligne 293: Ligne 316:
     - containerPath: /shares     - containerPath: /shares
       hostPath: /data/shares       hostPath: /data/shares
 +
 +# Si module nf_tables est présent à la pace de iptables
 +networking:
 +  kubeProxyMode: "nftables"
 ~~~ ~~~
  
Ligne 318: Ligne 345:
 ~/code/awx-operator/bin/kustomize build config/default | kubectl apply -f - ~/code/awx-operator/bin/kustomize build config/default | kubectl apply -f -
  
 +kubectl get pods -w
  
  
tech/notes_k8s_-_kind_pour_awx.1764608420.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki