Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.
/ k8s-infra Public archive

Container infrastructure on which Autoreduction is deployed.

License

Notifications You must be signed in to change notification settings

autoreduction/k8s-infra

Repository files navigation

K8s infrastructure Code Quality

Container infrastructure on which Autoreduction is deployed.

VM allocation

  • Login to the OpenStack dashboard
  • Select Launch Instance
  • Details
    • Instance Name = ar-k8s
    • Count = 3
  • Source = ubuntu-focal-20.04-nogui
  • Flavour = c3.large
  • Security Groups
    • Remove Default
    • Add use-host-firewall
  • Key pair
    • Ensure the public key associated with you in users.yml is added
  • Select Launch Instance

Deployment

When asked for a sudo password, use your Fed ID password. The location you choose for <SECURE PATH> should actually be somewhere secure, if in doubt, use /tmp and put up with having to run step 6 again to get another copy.

  1. Ensure the inventory is up to date and that the correct user is specified for ansible_user
  2. Ensure the user configuration is up to date
  3. ansible-galaxy install -r requirements.yml
  4. ansible-playbook -K --ask-vault-pass system.yml -e system_reboot=true
  5. export KUBECONFIG=/<SECURE PATH>/kubeconfig
  6. ansible-playbook -K --ask-vault-pass k3s.yml
  7. ansible-playbook -K --ask-vault-pass services.yml -e longhorn_generate_iscsi_iname=true

Getting kubeconfig

  1. Steps 1, 3 and 5 from the Deployment instructions
  2. ansible-playbook -K --ask-vault-pass k3s.yml -l k8s_controller
  3. kubectl cluster-info

About

Container infrastructure on which Autoreduction is deployed.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •