tech:notes_k8s_-_kind_pour_awx
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:notes_k8s_-_kind_pour_awx [2025/11/12 21:28] – Jean-Baptiste | tech:notes_k8s_-_kind_pour_awx [2026/01/20 10:55] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| Voir : | Voir : | ||
| + | * [[Pb cgroup controllers not delegated to non-privileged users - SystemD delegate failed - cgroupControllers]] | ||
| * https:// | * https:// | ||
| - | * https:// | + | * https://docs.ansible.com/ |
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | * https:// | ||
| Voir aussi : | Voir aussi : | ||
| Ligne 27: | Ligne 29: | ||
| * Contrôle des extravars (surveys) | * Contrôle des extravars (surveys) | ||
| * Planification (schedules) | * Planification (schedules) | ||
| + | Reducing complexity | ||
| + | * EE : software dependencies, | ||
| + | |||
| + | |||
| + | |||
| Ligne 60: | Ligne 67: | ||
| ~~~bash | ~~~bash | ||
| KIND_EXPERIMENTAL_PROVIDER=nerdctl | KIND_EXPERIMENTAL_PROVIDER=nerdctl | ||
| + | |||
| + | # nerdctl / kind a besoin de connaitre le chemin de iptables | ||
| + | export PATH=$PATH:/ | ||
| ~~~ | ~~~ | ||
| Ligne 111: | Ligne 121: | ||
| ~~~ | ~~~ | ||
| + | |||
| + | install Nginx Ingress controller | ||
| + | ~~~bash | ||
| + | kubectl apply -f https:// | ||
| + | ~~~ | ||
| ------ | ------ | ||
| Ligne 213: | Ligne 228: | ||
| 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 | ||
| - | ~~~ | ||
| - | |||
| ''/ | ''/ | ||
| Ligne 269: | Ligne 275: | ||
| - | FIXME | + | ------ |
| + | |||
| + | ~~~yaml | ||
| + | kind: Cluster | ||
| + | apiVersion: kind.x-k8s.io/ | ||
| + | nodes: | ||
| + | - role: control-plane | ||
| + | extraMounts: | ||
| + | - containerPath: | ||
| + | hostPath: / | ||
| + | - containerPath: | ||
| + | hostPath: / | ||
| + | readOnly: true | ||
| + | - containerPath: | ||
| + | hostPath: / | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | kind create cluster --config cluster-config.yml | ||
| + | |||
| + | kubectl get pods -A -w | ||
| + | |||
| + | git clone https:// | ||
| + | cd awx-operator | ||
| + | |||
| + | export NAMESPACE=awx | ||
| + | |||
| + | kubectl create ns ${NAMESPACE} | ||
| + | kubectl config set-context --current --namespace=$NAMESPACE | ||
| + | |||
| + | export RELEASE_TAG=`curl -s https:// | ||
| + | git checkout $RELEASE_TAG | ||
| + | |||
| + | cd config/ | ||
| + | ~/ | ||
| + | |||
| + | cd ~/ | ||
| + | ~/ | ||
| + | |||
| + | kubectl get pods -w | ||
| + | |||
| + | |||
| + | tee awx-pv.yml << | ||
| + | --- | ||
| + | apiVersion: v1 | ||
| + | kind: PersistentVolume | ||
| + | metadata: | ||
| + | name: awx-postgres-13-volume | ||
| + | spec: | ||
| + | accessModes: | ||
| + | - ReadWriteOnce | ||
| + | persistentVolumeReclaimPolicy: | ||
| + | capacity: | ||
| + | storage: 8Gi | ||
| + | storageClassName: | ||
| + | hostPath: | ||
| + | path: / | ||
| + | |||
| + | --- | ||
| + | apiVersion: v1 | ||
| + | kind: PersistentVolume | ||
| + | metadata: | ||
| + | name: awx-projects-volume | ||
| + | spec: | ||
| + | accessModes: | ||
| + | - ReadWriteOnce | ||
| + | persistentVolumeReclaimPolicy: | ||
| + | capacity: | ||
| + | storage: 2Gi | ||
| + | storageClassName: | ||
| + | hostPath: | ||
| + | path: / | ||
| + | EOF | ||
| + | |||
| + | kubectl apply -f awx-pv.yml | ||
| + | |||
| + | kubectl get pv -w | ||
| + | |||
| + | tee awx-pvc.yml << | ||
| + | --- | ||
| + | apiVersion: v1 | ||
| + | kind: PersistentVolumeClaim | ||
| + | metadata: | ||
| + | name: awx-projects-claim | ||
| + | spec: | ||
| + | accessModes: | ||
| + | - ReadWriteOnce | ||
| + | volumeMode: Filesystem | ||
| + | resources: | ||
| + | requests: | ||
| + | storage: 2Gi | ||
| + | storageClassName: | ||
| + | EOF | ||
| + | |||
| + | kubectl apply -f awx-pvc.yml | ||
| + | |||
| + | kubectl get pvc -w | ||
| + | |||
| + | |||
| + | tee awx-deployment.yml<< | ||
| + | --- | ||
| + | apiVersion: awx.ansible.com/ | ||
| + | kind: AWX | ||
| + | metadata: | ||
| + | name: awx | ||
| + | spec: | ||
| + | # These parameters are designed for use with AWX Operator 0.29.0 | ||
| + | # and AWX 21.6.0 | ||
| + | postgres_configuration_secret: | ||
| + | postgres_storage_class: | ||
| + | postgres_storage_requirements: | ||
| + | requests: | ||
| + | storage: 8Gi | ||
| + | projects_persistence: | ||
| + | garbage_collect_secrets: | ||
| + | projects_existing_claim: | ||
| + | postgres_init_container_resource_requirements: | ||
| + | postgres_resource_requirements: | ||
| + | web_resource_requirements: | ||
| + | task_resource_requirements: | ||
| + | ee_resource_requirements: | ||
| + | service_type: | ||
| + | ingress_type: | ||
| + | hostname: awx.robert.local | ||
| + | ingress_annotations: | ||
| + | kubernetes.io/ | ||
| + | EOF | ||
| + | |||
| + | kubectl apply -f awx-deployment.yml | ||
| + | |||
| + | kubectl get AWX -w | ||
| + | |||
| + | |||
| + | # nerdctl exec -ti kind-control-plane bash | ||
| + | # mkdir / | ||
| + | ~~~ | ||
tech/notes_k8s_-_kind_pour_awx.1762979298.txt.gz · Dernière modification : de Jean-Baptiste
