- To run Red Hat OpenShift Container Platform clusters on Amazon Web Services with ReadWriteMany access mode, you must add NFS or other storage.
- Create PV (to install ansible operator these are the pre-reqs)
apiVersion: v1
kind: PersistentVolume
metadata:
name: ansible-pv
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteMany
nfs:
path: /tmp
server: 172.17.0.2
persistentVolumeReclaimPolicy: Retain
- Create PVC
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ansible-pvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
volumeName: ansible-pv
storageClassName: ""
Reference link to add Persistent Volume and Persistent Volume Claim - https://docs.openshift.com/container-platform/4.9/storage/persistent_storage/persistent-storage-nfs.html
- Navigate to OperatorHub and Install Ansible PLatform Operator
- Create an Automation Controller CR
apiVersion: automationcontroller.ansible.com/v1beta1
kind: AutomationController
metadata:
name: ansible-controller
namespace: ansible
spec:
postgres_keepalives_count: 5
postgres_keepalives_idle: 5
create_preload_data: true
route_tls_termination_mechanism: Edge
garbage_collect_secrets: false
ingress_type: Route
loadbalancer_port: 80
no_log: true
image_pull_policy: IfNotPresent
projects_storage_size: 8Gi
auto_upgrade: true
task_privileged: false
postgres_keepalives: true
postgres_keepalives_interval: 5
ipv6_disabled: false
projects_storage_access_mode: ReadWriteMany
set_self_labels: true
projects_persistence: false
replicas: 1
admin_user: admin
loadbalancer_protocol: http
This will create postgres
, controller-task
and controller-web
instances and you can route to Ansible Platform.