Skip to content

Commit

Permalink
Merge pull request #1155 from kube-hetzner/fix/cilium-error
Browse files Browse the repository at this point in the history
Fixes cilium selinux issues
  • Loading branch information
mysticaltech authored Jan 6, 2024
2 parents 22634fa + 7cdb43a commit bf718f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kube.tf.example
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ module "kube-hetzner" {
# See the https://github.com/kube-hetzner/terraform-hcloud-kube-hetzner#examples for an example use case.
{
name = "egress",
server_type = "cpx11",
server_type = "cx21",
location = "fsn1",
labels = [
"node.kubernetes.io/role=egress"
Expand Down Expand Up @@ -610,6 +610,8 @@ module "kube-hetzner" {
# possible values: flannel (Default), calico, and cilium
# As for Cilium, we allow infinite configurations via helm values, please check the CNI section of the readme over at https://github.com/kube-hetzner/terraform-hcloud-kube-hetzner/#cni.
# Also, see the cilium_values at towards the end of this file, in the advanced section.
# ⚠️ Depending on your setup, sometimes you need your control-planes to have more than
# 2GB of RAM if you are going to use Cilium, otherwise the pods will not start.
# cni_plugin = "cilium"

# You can choose the version of Cilium that you want. By default we keep the version up to date and configure Cilium with compatible settings according to the version.
Expand Down
2 changes: 2 additions & 0 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ EOF
class lnk_file { read create };
class system module_request;
class filesystem associate;
class bpf map_create;
}
#============= kernel_generic_helper_t ==============
Expand Down Expand Up @@ -803,6 +804,7 @@ EOF
allow container_t var_log_t:dir remove_name;
allow container_t var_log_t:file unlink;
allow container_t proc_t:filesystem associate;
allow container_t self:bpf map_create;
# Create the k3s registries file if needed
%{if var.k3s_registries != ""}
Expand Down

0 comments on commit bf718f4

Please sign in to comment.