Skip to content

Commit

Permalink
feat: Use vexxhost.containers
Browse files Browse the repository at this point in the history
  • Loading branch information
ricolin committed Nov 22, 2023
1 parent 889cf03 commit b7ae771
Show file tree
Hide file tree
Showing 30 changed files with 54 additions and 763 deletions.
1 change: 0 additions & 1 deletion .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
scenario:
- cluster-api
- cluster-api-upgrade
- containerd
- helm
- upload-helm-chart
distro:
Expand Down
4 changes: 2 additions & 2 deletions docs/ops/upgrades.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ cluster is still functional after each step.
hosts: "{{ kubernetes_group | default('all') }}"
become: true
roles:
- role: vexxhost.kubernetes.containerd
- role: vexxhost.containers.containerd
END
```

Expand Down Expand Up @@ -76,7 +76,7 @@ cluster is still functional after each step.
become: true
roles:
- role: vexxhost.atmosphere.defaults
- role: vexxhost.kubernetes.containerd
- role: vexxhost.containers.containerd
vars:
containerd_pause_image: "{{ atmosphere_images['pause'] }}"
END
Expand Down
1 change: 1 addition & 0 deletions galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies:
community.crypto: ">=2.2.3"
community.general: ">=4.5.0"
kubernetes.core: ">=2.3.2"
vexxhost.containers: ">=1.0.0"
tags:
- application
- cloud
Expand Down
19 changes: 0 additions & 19 deletions molecule/containerd/converge.yml

This file was deleted.

39 changes: 0 additions & 39 deletions molecule/containerd/molecule.yml

This file was deleted.

33 changes: 0 additions & 33 deletions molecule/containerd/prepare.yml

This file was deleted.

72 changes: 0 additions & 72 deletions molecule/containerd/verify.yml

This file was deleted.

49 changes: 49 additions & 0 deletions playbooks/kubernetes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright (c) 2023 VEXXHOST, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

- name: Configure Kubernetes VIP
hosts: "{{ kubernetes_control_plane_group | default('controllers') }}"
become: true
roles:
- role: keepalived
tags:
- keepalived

- role: haproxy
tags:
- haproxy

- name: Install Kubernetes
hosts: "{{ kubernetes_group | default('all') }}"
become: true
roles:
- role: kubernetes
tags:
- kubernetes

- name: Install control-plane components
hosts: "{{ kubernetes_control_plane_group | default('controllers') }}"
become: true
roles:
- role: helm
tags:
- helm

- role: cilium
tags:
- cilium

# - role: csi
# tags:
# - csi
41 changes: 2 additions & 39 deletions playbooks/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,5 @@
# License for the specific language governing permissions and limitations
# under the License.

- name: Configure Kubernetes VIP
hosts: "{{ kubernetes_control_plane_group | default('controllers') }}"
become: true
roles:
- role: keepalived
tags:
- keepalived

- role: haproxy
tags:
- haproxy

- name: Install Kubernetes
hosts: "{{ kubernetes_group | default('all') }}"
become: true
roles:
- role: containerd
tags:
- containerd

- role: kubernetes
tags:
- kubernetes

- name: Install control-plane components
hosts: "{{ kubernetes_control_plane_group | default('controllers') }}"
become: true
roles:
- role: helm
tags:
- helm

- role: cilium
tags:
- cilium

# - role: csi
# tags:
# - csi
- import_playbook: vexxhost.containers.site

Check failure on line 15 in playbooks/site.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

name[play]

All plays should be named.
- import_playbook: vexxhost.kubernetes.kubernetes

Check failure on line 16 in playbooks/site.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

name[play]

All plays should be named.
4 changes: 0 additions & 4 deletions roles/cni_plugins/README.md

This file was deleted.

35 changes: 0 additions & 35 deletions roles/cni_plugins/defaults/main.yml

This file was deleted.

45 changes: 0 additions & 45 deletions roles/cni_plugins/meta/main.yml

This file was deleted.

Loading

0 comments on commit b7ae771

Please sign in to comment.