Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: deprecate kube-proxy #48

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
__pycache__
tests/output
.DS_Store
3 changes: 3 additions & 0 deletions roles/cilium/templates/values.yml.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
k8sServiceHost: "{{ kubernetes_hostname }}"
k8sServicePort: 6443
image:
repository: "{{ cilium_node_image | vexxhost.kubernetes.docker_image('name') }}"
tag: "{{ cilium_node_image | vexxhost.kubernetes.docker_image('tag') }}"
Expand All @@ -20,3 +22,4 @@ operator:
ipam:
operator:
clusterPoolIPv4PodCIDR: "{{ cilium_ipv4_cidr | default('10.0.0.0/8') }}"
kubeProxyReplacement: "strict"
1 change: 1 addition & 0 deletions roles/kubernetes/tasks/bootstrap-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
throttle: 1
ansible.builtin.shell: |
kubeadm init --config /etc/kubernetes/kubeadm.yaml --upload-certs \
--skip-phases=addon/kube-proxy \
--ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests{% if kubernetes_allow_unsafe_swap %},Swap{% endif %}
args:
creates: /etc/kubernetes/admin.conf
Expand Down
11 changes: 11 additions & 0 deletions roles/kubernetes/tasks/control-plane.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,14 @@
key: node-role.kubernetes.io/control-plane
- effect: NoSchedule
key: node-role.kubernetes.io/master

- name: Remove kube-proxy
kubernetes.core.k8s:
state: absent
api_version: v1
kind: "{{ item }}"
namespace: kube-system
name: kube-proxy
with_items:
- DaemonSet
- ConfigMap
Loading