Skip to content
  1. Sep 10, 2021
    • Vladimir Masarik's avatar
      Fix: adding new ips with inventory builder (#7577) (#7583) · a5a88e41
      Vladimir Masarik authored
      * Fix: adding new ips with inventory builder (#7577)
      
      * moved conflig loading logic
      to after checking whether the config
      should be loaded, and added check for
      whether the config should be loaded
      
      * added check for removing nodes from config
      if the user wants to remove a node, we
      need to load the config
      
      * Fix tox errors
      a5a88e41
  2. Aug 19, 2021
  3. Jul 26, 2021
    • Kenichi Omichi's avatar
      Fix how to get image ID on offline deployment (#7808) · 8f44cd35
      Kenichi Omichi authored
      Previously IDs of container images were gotten from tar files of container
      images but that way was wrong. If multiple json files are contained in a
      tar file, the script got multiple IDs and tried to pass these IDs on
      `docker tag` command. Then the command was failed.
      
      This updates the script to get image IDs from `docker image inspect` command
      to fix this issue.
      In addition, this adds a check a registry container exists already or not
      before deploying registry container to avoid a container conflict failure.
      8f44cd35
  4. 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
  5. Jul 19, 2021
    • Kenichi Omichi's avatar
      Add error handling for registorying images (#7787) · b0fcc1ad
      Kenichi Omichi authored
      When running the script, I faced the following error but it was
      difficult to know the root problem due to lack of error handling.
      
        docker tag" requires exactly 2 arguments.
        See 'docker tag --help'.
      
        Usage:  docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
      
        Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
      
      To investigate such errors easily, this adds an error handling.
      b0fcc1ad
  6. Jul 14, 2021
  7. Jul 12, 2021
    • Cristian Calin's avatar
      Move to Ansible 3.4.0 (#7672) · 7516fe14
      Cristian Calin authored
      * Ansible: move to Ansible 3.4.0 which uses ansible-base 2.10.10
      
      * Docs: add a note about ansible upgrade post 2.9.x
      
      * CI: ensure ansible is removed before ansible 3.x is installed to avoid pip failures
      
      * Ansible: use newer ansible-lint
      
      * Fix ansible-lint 5.0.11 found issues
      
      * syntax issues
      * risky-file-permissions
      * var-naming
      * role-name
      * molecule tests
      
      * Mitogen: use 0.3.0rc1 which adds support for ansible 2.10+
      
      * Pin ansible-base to 2.10.11 to get package fix on RHEL8
      7516fe14
  8. Jul 08, 2021
  9. Jul 05, 2021
  10. Jun 25, 2021
    • jayonlau's avatar
      Clean up extra spaces (#7744) · cda88e67
      jayonlau authored
      I recently reviewed the code, although these errors are not important, they affect the code specification.
      cda88e67
    • 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
  11. Jun 05, 2021
  12. Jun 01, 2021
  13. 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
  14. May 18, 2021
    • Kenichi Omichi's avatar
      Add contrib playbook to disable service firewall (#7431) · b3d9f2b4
      Kenichi Omichi authored
      Basically we need to make necessary TCP/UDP ports open.
      However the necessary ports are so many, and sometimes it is difficult
      to figure out that is due to firewall issues or not if facing deployment
      issues.
      To distinguish a root problem on such situation, this adds contrib
      playbook to disable the service firewall for Kubespray development
      and test.
      b3d9f2b4
  15. May 12, 2021
  16. May 11, 2021
  17. 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
  18. Apr 26, 2021
  19. Apr 21, 2021
  20. 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
  21. Apr 05, 2021
  22. Mar 24, 2021
  23. 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
  24. Mar 01, 2021
  25. 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
  26. Feb 23, 2021
  27. Feb 19, 2021
  28. Feb 16, 2021
  29. Feb 12, 2021
  30. 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
  31. Jan 23, 2021
  32. Jan 21, 2021
  33. Jan 11, 2021
  34. Jan 07, 2021
    • Kenichi Omichi's avatar
      Fix mardownlint failures of offline (#7108) · 2585e72a
      Kenichi Omichi authored
      This fixes the following failures:
      
      ./contrib/offline/README.md:14:1 MD014/commands-show-output Dollar signs used before commands without showing output [Context: "$ ./manage-offline-container-i..."]
      ./contrib/offline/README.md:20:1 MD014/commands-show-output Dollar signs used before commands without showing output [Context: "$ ./manage-offline-container-i..."]
      2585e72a
  35. Jan 06, 2021
  36. Dec 30, 2020
  37. Dec 25, 2020
Loading