k8s-cluster-deploy #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: k8s-cluster-deploy | |
on: | |
workflow_dispatch: | |
jobs: | |
bristol: | |
runs-on: [ self-hosted ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3.1.0 | |
- name: Install Galaxy requirements | |
working-directory: Ansible | |
run: | | |
ansible-galaxy install -r galaxy-requirements.yml | |
- uses: webfactory/ssh-agent@v0.7.0 | |
with: | |
ssh-private-key: ${{ secrets.ANSIBLE_PK }} | |
- name: Run Ansible core configuration | |
working-directory: Ansible | |
env: | |
PROXMOX_PASSWORD: ${{ secrets.ANSIBLE_PROXMOX_PASSWORD }} | |
ROOT_PASSWORD: ${{ secrets.ROOT_PASSWORD }} | |
CLINCHA_PASSWORD: ${{ secrets.CLINCHA_PASSWORD }} | |
ANSIBLE_PASSWORD: ${{ secrets.ANSIBLE_PASSWORD }} | |
run: | | |
ansible-playbook core-configuration.yml --inventory bristol.proxmox.yml | |
- name: Install Kubernetes cluster | |
working-directory: Ansible | |
run: | | |
ansible-playbook kubespray.yml --inventory bristol.proxmox.yml --become --become-user root | |
env: | |
PROXMOX_PASSWORD: ${{ secrets.ANSIBLE_PROXMOX_PASSWORD }} | |
CEPH_KEY: ${{ secrets.CEPH_KEY }} | |
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }} |