capitanh.gocdk8s_ansible_role
GoCD on Kubernetes Ansible Role
This role installs the official GoCD helm chart on a Kubernetes (k8s) cluster. It has only been tested with MicroK8s because of specific storage requirements.
Requirements
You need a working MicroK8s installation. You can use this role to set up a MicroK8s cluster: https://github.com/capitanh/microk8s_ansible_role
Role Variables
Here are the variables you need for this role:
gocd_app_name: gocd # Application name in the cluster
k8s_namespace: gocd # Namespace in the k8s cluster for deploying pods
gocd_data_dir: /var/gocd # Data directory for GoCD
# Persistent volume
pv_name: gocd-server # Name of the persistent volume
storage_class_name: microk8s-hostpath # Storage class name from the provider
pv_storage_size: 2Gi # Size of the persistent volume
# Persistent volume claim
pvc_name: gocd-server # Name of the persistent volume claim
pvc_size: 2Gi # Size of the persistent volume claim
Dependencies
- pip is required
Example Playbook
To use the role, add it to your requirements.yml
:
- src: capitanh.gocdk8s_ansible_role
name: gocdk8s
Then include it in your playbooks:
- hosts: servers
roles:
- gocdk8s
License
This role is licensed under BSD.
Installa
ansible-galaxy install capitanh.gocdk8s_ansible_role
Licenza
Unknown
Download
1.4k
Proprietario