Add k8s configs and update documentation with AWX setup
This commit is contained in:
25
k8s/awx/awx-cr.yml
Normal file
25
k8s/awx/awx-cr.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
apiVersion: awx.ansible.com/v1beta1
|
||||
kind: AWX
|
||||
metadata:
|
||||
name: awx
|
||||
namespace: awx
|
||||
spec:
|
||||
# Ajuste ces valeurs selon ta version & ressources
|
||||
postgres_configuration_secret: awx-postgres-configuration
|
||||
postgres_storage_class: local-path
|
||||
postgres_storage_requirements:
|
||||
requests:
|
||||
storage: 8Gi
|
||||
projects_persistence: true
|
||||
projects_existing_claim: awx-projects-claim
|
||||
|
||||
# important: pas d'exposition publique
|
||||
service_type: ClusterIP
|
||||
ingress_type: none
|
||||
|
||||
# Job pods puissent être privilégiés
|
||||
# (Necessaire avec tailscale dans les EE)
|
||||
task_privileged: true
|
||||
|
||||
image: quay.io/ansible/awx
|
||||
image_version: "latest"
|
||||
12
k8s/awx/awx-pvc.yml
Normal file
12
k8s/awx/awx-pvc.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
# awx-pvc.yml
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: awx-projects-claim
|
||||
namespace: awx
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: 12Gi
|
||||
storageClassName: local-path
|
||||
18
k8s/awx/tailscale-ingress.yml
Normal file
18
k8s/awx/tailscale-ingress.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: awx-tailscale-ingress
|
||||
namespace: awx
|
||||
annotations:
|
||||
tailscale.com/expose: "true"
|
||||
tailscale.com/hostname: "awx"
|
||||
spec:
|
||||
ingressClassName: tailscale
|
||||
defaultBackend:
|
||||
service:
|
||||
name: awx-service
|
||||
port:
|
||||
number: 80
|
||||
tls:
|
||||
- hosts:
|
||||
- awx.taila5ad8.ts.net
|
||||
Reference in New Issue
Block a user