AWX operator를 통한 설치

cloud2000·2023년 11월 17일

앤서블은 Puppet, Salt, Chef와 같은 오픈소스 자동화 툴이다. 현재 시점에서 Google trend를 조사해 보면 Ansible의 인기가 상당하다.

이전에 AWS를 docker로 설치하여 사용했으나 17.1부터는 kubernetes상에 operator로 설치 방식이 변경되어 설치 과정 및 주의할 점을 정리하고자 한다.

폐쇄망에서 설치시에는 관련 docker image를 사내 repository에서 받을 수 있도록 AWX custom resource를 생성시에 속성값을 설정해 주어야 설치시에 image pull 오류가 발생하지 않는다.

다음은 AWX opeator에서 제공하는 AWX CRD에서 패쇄망에 설치시 반드시 설정해야 하는 항목을 표시한 것이다.

$ vi utcloud-awx.yaml
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: utcloud-awx
  namespace: awx
spec:
	postgres_image:
    postgres_image_version:
    init_container_image:
    init_container_image_version:
    redis_image:
    redis_image_version:
    control_plane_ee_image:
    image:
    image_version:
    ee_images:
    task_tolerations:
    web_tolerations:
    
    ingress_type: ingress
    ingress_path_type:
    ingress_tls_secret: tls-smap-star
    hostname: awx.utcloud.com
    
    postgres_tolerations:
  • 설치
$ helm upgrade -i --create-namespace -n awx ./awx my-awx
$ kubectl apply -f tls-utcloud-secret
$ kubectl apply -f utcloud-awx.yaml
profile
클라우드쟁이

0개의 댓글