Skip to content
  1. Jul 23, 2021
    • Samuel's avatar
      fix(misc): contrib/terraform/aws (#7818) · bfebcfa2
      Samuel authored
      * fix(misc): terraform/aws
      
      - handles deployment with a single availability zone
      - handles deployment with more than two availability zone
      - handles etcd collocation with control-plane nodes (`aws_etcd_num=0`)
      - allows to set a bastion instances count (`aws_bastion_num`)
      - allows to set bastion/etcd/control-plane/workers rootfs volume size
      - removes variables from terraform.tfvars that were not re-used
      - adds .terraform.lock.hcl to .gitignore
      - changes/updates base image from ubuntu-18.03 to debian-10
      
      tested by a few coworkers of mine, and myself: thanks for the outstanding
      work, on both those terraform samples and kubespray playbooks.
      I did not test ubuntu deployments, I could still swap from buster to
      focal. LMK.
      
      * fix(gitlab-ci)
      
      AFAIU, terraform.tfvars indentation should be fixed for / no diff
      returned running `terraform fmt -check -diff`
      
      https://gitlab.com/kargo-ci/kubernetes-sigs-kubespray/-/jobs/1445622114
      bfebcfa2
  2. Jul 14, 2021
  3. Jun 25, 2021
    • Simon Kollberg's avatar
      Openstack cwd (#7643) · d7039ef7
      Simon Kollberg authored
      * terraform/openstack: Use path.root for ansible_bastion_template.txt
      
      The path.root variable points to the root module path. Using this
      instead of a relative path makes less assumptions about the current
      working directory.
      
      * terraform/openstack: Add group_vars_path variable
      
      Previously, the group_vars path was assumed to be in CWD. The
      default value for the group_vars_path variable is still relative
      to CWD and thus should be backwards compatible if unset.
      d7039ef7
  4. Jun 01, 2021
  5. May 27, 2021
    • Marques Johansson's avatar
      Packet renamed (#7653) · 3a37a496
      Marques Johansson authored
      
      
      * Packet->Equinix Metal rename #6901 
      
      Updates throughout to reflect #6901 renaming for Packet to Equinix Metal.
      
      * Rename Packet to Equinix Metal throughout the project #6901
      
      Packet is renamed to Equinix Metal in more contexts including
      documentation links. The Terraform provider used is still the Packet
      provider. The environment variables and configuration options still
      refer to the Packet name.
      
      Signed-off-by: default avatarMarques Johansson <mjohansson@equinix.com>
      
      Co-authored-by: default avatarEdward Vielmetti <ed@packet.net>
      3a37a496
  6. May 12, 2021
  7. Apr 29, 2021
    • Cristian Calin's avatar
      Rename ansible groups to use _ instead of - (#7552) · 360aff4a
      Cristian Calin authored
      * rename ansible groups to use _ instead of -
      
      k8s-cluster -> k8s_cluster
      k8s-node -> k8s_node
      calico-rr -> calico_rr
      no-floating -> no_floating
      
      Note: kube-node,k8s-cluster groups in upgrade CI
            need clean-up after v2.16 is tagged
      
      * ensure old groups are mapped to the new ones
      360aff4a
  8. Apr 16, 2021
    • Cristian Klein's avatar
      exoscale: Rework EIP access from workers (#7337) · 3ac92689
      Cristian Klein authored
      Context: Load-balancing in Exoscale is performed by associating many
      workers with the same EIP. This works, however, the workers cannot access
      themselves via the EIP, which is needed at least for cert-managers
      "self-test".
      
      Problem: The old iptables based workaround felt fragile and disappointed
      me at least once.
      
      New solution: Add the EIP to a loopback interface on each worker.
      3ac92689
  9. Apr 05, 2021
  10. Mar 24, 2021
  11. Mar 15, 2021
    • Florian Ruynat's avatar
    • Ewnetu Bayuh Lakew's avatar
      Terraform support for UpCloud (#7360) · 5c5bf41a
      Ewnetu Bayuh Lakew authored
      * terraform support for UpCloud
      
      * terraform support for UpCloud
      
      * terraform support for UpCloud
      
      * terraform support for UpCloud
      
      * terraform support for UpCloud
      
      * terraform support for UpCloud
      
      * terraform support for UpCloud
      
      * Updates to README.md and main.tf files
      
      * formatting and updating readme
      
      * added a .terraform_validate CI job
      
      * fixed format issue
      
      * added sample inventory
      
      * added symbolic link to group_vars
      
      * added missing tf variables and minor fixes
      
      * added text formatting
      
      * minor formatting fixes
      5c5bf41a
  12. Mar 01, 2021
  13. Feb 26, 2021
    • Jakub Krzywda's avatar
      Vsphere (#7306) · 0a0156c9
      Jakub Krzywda authored
      * Add terraform scripts for vSphere
      
      * Fixup: Add terraform scripts for vSphere
      
      * Add inventory generation
      
      * Use machines var to provide IPs
      
      * Add README file
      
      * Add default.tfvars file
      
      * Fix newlines at the end of files
      
      * Remove master.count and worker.count variables
      
      * Fixup cloud-init formatting
      
      * Fixes after initial review
      
      * Add warning about disabled DHCP
      
      * Fixes after second review
      
      * Add sample-inventory
      0a0156c9
  14. Feb 19, 2021
  15. Feb 16, 2021
  16. Feb 12, 2021
  17. Feb 03, 2021
    • Cristian Klein's avatar
      contrib/terraform/exoscale: Rework SSH public keys (#7242) · b77460ec
      Cristian Klein authored
      * contrib/terraform/exoscale: Rework SSH public keys
      
      Exoscale has a few limitations with `exoscale_ssh_keypair` resources.
      Creating several clusters with these scripts may lead to an error like:
      
      ```
      Error: API error ParamError 431 (InvalidParameterValueException 4350): The key pair "lj-sc-ssh-key" already has this fingerprint
      ```
      
      This patch reworks handling of SSH public keys. Specifically, we rely on
      the more cloud-agnostic way of configuring SSH public keys via
      `cloud-init`.
      
      * contrib/terraform/exoscale: terraform fmt
      
      * contrib/terraform/exoscale: Add terraform validate
      
      * contrib/terraform/exoscale: Inline public SSH keys
      
      The Terraform scripts need to install some SSH key, so that Kubespray
      (i.e., the "Ansible part") can take over. Initially, we pointed the
      Terraform scripts to `~/.ssh/id_rsa.pub`. This proved to be suboptimal:
      Operators sharing responbility for a cluster risk unnecessarily replacing resources.
      
      Therefore, it has been determined that it's best to inline the public
      SSH keys. The chosen variable `ssh_public_keys` provides some uniformity
      with `contrib/azurerm`.
      
      * Fix Terraform Exoscale test
      
      * Fix Terraform 0.14 test
      b77460ec
  18. Jan 23, 2021
  19. Jan 21, 2021
  20. Dec 30, 2020
  21. Dec 25, 2020
  22. Dec 24, 2020
  23. Dec 23, 2020
    • Cristian Klein's avatar
      Fix terraform0.13 errors (#7077) · fd3ebc13
      Cristian Klein authored
      * [terraform/aws] Fix Terraform >=0.13 warnings
      
      Terraform >=0.13 gives the following warning:
      
      ```
      Warning: Interpolation-only expressions are deprecated
      ```
      
      The fix was tested as follows:
      ```
      rm -rf .terraform && terraform0.12.26 init && terraform0.12.26 validate
      rm -rf .terraform && terraform0.13.5 init && terraform0.13.5 validate
      rm -rf .terraform && terraform0.14.3 init && terraform0.14.3 validate
      ```
      which gave no errors nor warnings.
      
      * [terraform/openstack] Fixes for Terraform >=0.13
      
      Terraform >=0.13 gives the following error:
      ```
      Error: Failed to install providers
      Could not find required providers, but found possible alternatives:
        hashicorp/openstack -> terraform-provider-openstack/openstack
      ```
      
      This patch fixes these errors.
      
      This fix was tested as follows:
      ```
      rm -rf .terraform && terraform0.12.26 init && terraform0.12.26 validate
      rm -rf .terraform && terraform0.13.5 init && terraform0.13.5 validate
      rm -rf .terraform && terraform0.14.3 init && terraform0.14.3 validate
      ```
      which gave no errors nor warnings for Terraform 0.13.5 and Terraform
      0.14.3. Unfortunately, 0.12.x gives a harmless warning, but
      with 0.14.3 out the door, I guess we need to move on.
      
      * [terraform/packet] Fixes for Terraform >=0.13
      
      This fix was tested as follows:
      ```
      export PACKET_AUTH_TOKEN=blah-blah
      rm -rf .terraform && terraform0.12.26 init && terraform0.12.26 validate
      rm -rf .terraform && terraform0.13.5 init && terraform0.13.5 validate
      rm -rf .terraform && terraform0.14.3 init && terraform0.14.3 validate
      ```
      
      Errors are gone, but warnings still remain. It is impossible to please
      all three versions of Terraform.
      
      * Add tests for Terraform >=0.13
      fd3ebc13
  24. Nov 06, 2020
  25. Nov 05, 2020
  26. Oct 29, 2020
    • David Medinets's avatar
      Notes About Server In admin.conf (#6854) · 102fb945
      David Medinets authored
      * Add note about changing private IP in admin.conf.
      
      When I run kubespray, a load balancer is created which should be used instead of the ip of the controller node.
      
      * Procedure to find load balancer and update admin.conf
      
      When I run kubespray, a load balancer is used instead of the private ip of the controller.
      102fb945
  27. Oct 12, 2020
  28. Sep 22, 2020
    • David Medinets's avatar
      Change health check from TCP to HTTPS (#6487) · 1805e95b
      David Medinets authored
      I kept seeing `TLS handshake error from 10.250.250.158:63770: EOF` from two IP addresses that correlate to my ELB. Changing the health check from TCP to HTTPS stopped the errors from being generated.
      1805e95b
  29. Sep 17, 2020
  30. Aug 28, 2020
  31. Aug 27, 2020
  32. Aug 18, 2020
  33. Aug 05, 2020
  34. Jul 22, 2020
  35. Jun 16, 2020
  36. Jun 05, 2020
  37. Apr 16, 2020
  38. Apr 09, 2020
Loading