-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add code-path to allow AKS with byoCNI and cilium without kube-proxy
* update main.tf file with helm-provider and release for cilium * update main.tf file with kube-proxy configuration for cilium * update variables.tf to account for byoCNI settings * update modules/azure_aks/main.tf to account for byoCNI settings * added byocni-values.yaml file for helm-configuration of cilium-1.14.4 * added kube-proxy.json file to allow enabling eBPF mode for byoCNI (aka. remove kube-proxy) Signed-off-by: Tilo Kleßen <[email protected]>
- Loading branch information
Showing
6 changed files
with
187 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
version: "1.14.4" | ||
kube-version: "1.27.7" | ||
kubeProxyReplacement: "strict" | ||
namespace: "kube-system" | ||
aksbyocni: | ||
enabled: true | ||
nodeinit: | ||
enabled: true | ||
cluster: | ||
name: "cilium-AKS-cluster" | ||
id: 123 | ||
gatewayAPI: | ||
enabled: false | ||
pmtuDiscovery: | ||
enabled: true | ||
healthPort: 9877 | ||
ingressController: | ||
enabled: true | ||
loadbalancerMode: "shared" | ||
ingressLBAnnotationPrefixes: "service.beta.kubernetes.io service.kubernetes.io cloud.google.com io.cilium" | ||
kubeProxyReplacementHealthzBindAddr: "0.0.0.0:10256" | ||
operator: | ||
prometheus: | ||
enabled: true | ||
installIptablesRules: true | ||
l7Proxy: true | ||
ipMasqAgent: | ||
enabled: true | ||
socketLB: | ||
hostNamespaceOnly: true | ||
enableCiliumEndpointSlice: true | ||
prometheus: | ||
enabled: true | ||
hubble: | ||
enabled: true | ||
relay: | ||
enabled: true | ||
ui: | ||
enabled: true | ||
cgroup: | ||
hostRoot: "/sys/fs/cgroup" | ||
bpf: | ||
masquerade: true | ||
tproxy: true | ||
enableIPv4Masquerade: true | ||
k8sServicePort: 443 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"enabled": false, | ||
"mode": "IPVS", | ||
"ipvsConfig": { | ||
"scheduler": "LeastConnection", | ||
"TCPTimeoutSeconds": 900, | ||
"TCPFINTimeoutSeconds": 120, | ||
"UDPTimeoutSeconds": 300 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# !NOTE! - These are only a subset of CONFIG-VARS.md provided as examples. | ||
# Customize this file to add any variables from 'CONFIG-VARS.md' whose default | ||
# values you want to change. | ||
|
||
# **************** REQUIRED VARIABLES **************** | ||
# These required variables' values MUST be provided by the User | ||
prefix = "hms-tkl-northeurope" # this is a prefix that you assign for the resources to be created | ||
location = "northeurope" # e.g., "eastus2" | ||
# **************** REQUIRED VARIABLES **************** | ||
|
||
# !NOTE! - Without specifying your CIDR block access rules, ingress traffic | ||
# to your cluster will be blocked by default. | ||
|
||
# ************** RECOMMENDED VARIABLES *************** | ||
default_public_access_cidrs = ["0.0.0.0/0"] # e.g., ["123.45.6.89/32"] | ||
ssh_public_key = "~/.ssh/id_rsa.pub" | ||
# ************** RECOMMENDED VARIABLES *************** | ||
|
||
# Tags can be specified matching your tagging strategy. | ||
tags = {} # for example: { "owner|email" = "<you>@<domain>.<com>", "key1" = "value1", "key2" = "value2" } | ||
|
||
# Postgres config - By having this entry a database server is created. If you do not | ||
# need an external database server remove the 'postgres_servers' | ||
# block below. | ||
postgres_servers = { | ||
default = {}, | ||
} | ||
|
||
# Azure Container Registry config | ||
create_container_registry = false | ||
container_registry_sku = "Standard" | ||
container_registry_admin_enabled = false | ||
|
||
# AKS config | ||
kubernetes_version = "1.27" | ||
default_nodepool_min_nodes = 2 | ||
default_nodepool_vm_type = "Standard_D4_v3" | ||
aks_cluster_sku_tier = "Standard" | ||
aks_identity = "sp" | ||
aks_network_plugin = "none" | ||
aks_network_policy = "none" | ||
node_pools_availability_zones = ["2"] | ||
#v3 still has local temp storage | ||
|
||
# AKS Node Pools config - minimal | ||
cluster_node_pool_mode = "minimal" | ||
node_pools = { | ||
cas = { | ||
"machine_type" = "Standard_E4s_v3" | ||
"os_disk_size" = 200 | ||
"min_nodes" = 0 | ||
"max_nodes" = 5 | ||
"max_pods" = 110 | ||
"node_taints" = ["workload.sas.com/class=cas:NoSchedule"] | ||
"node_labels" = { | ||
"workload.sas.com/class" = "cas" | ||
} | ||
}, | ||
generic = { | ||
"machine_type" = "Standard_D8s_v3" | ||
"os_disk_size" = 200 | ||
"min_nodes" = 0 | ||
"max_nodes" = 5 | ||
"max_pods" = 110 | ||
"node_taints" = [] | ||
"node_labels" = { | ||
"workload.sas.com/class" = "compute" | ||
"launcher.sas.com/prepullImage" = "sas-programming-environment" | ||
} | ||
} | ||
} | ||
|
||
# Jump Box | ||
create_jump_public_ip = true | ||
jump_vm_admin = "hms" | ||
jump_vm_machine_type = "Standard_B2s" | ||
|
||
# Storage for SAS Viya CAS/Compute | ||
storage_type = "standard" | ||
# required ONLY when storage_type is "standard" to create NFS Server VM | ||
create_nfs_public_ip = false | ||
nfs_vm_admin = "hms" | ||
nfs_vm_machine_type = "Standard_D4s_v4" | ||
nfs_raid_disk_size = 128 | ||
nfs_raid_disk_type = "Standard_LRS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters