Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from Smana/chore_gateway_api_crds
Browse files Browse the repository at this point in the history
chore: deploy gateway api crds using Flux
  • Loading branch information
Smana authored Aug 3, 2023
2 parents 3e524ae + 4628e0d commit 99c21f5
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 6 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform.git
rev: v1.79.1
hooks:
- id: terraform_docs
- id: terraform_fmt
- id: terraform_validate
- id: terraform_tfsec
Expand Down
7 changes: 7 additions & 0 deletions infrastructure/base/cilium/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system

resources:
- release.yaml
- source.yaml
56 changes: 56 additions & 0 deletions infrastructure/base/cilium/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: cilium
spec:
releaseName: cilium
chart:
spec:
chart: cilium
sourceRef:
kind: HelmRepository
name: cilium
namespace: kube-system
version: "1.14.0"
interval: 10m0s
install:
remediation:
retries: 3
values:
bandwidthManager:
enabled: true
bpf:
preallocateMaps: true
egressMasqueradeInterfaces: eth0
eni:
enabled: true
installNoConntrackIptablesRules: true
ipam:
mode: eni
kubeProxyReplacement: strict
operator:
resources:
limits:
cpu: 100m
memory: 100Mi
rollOutPods: true # Reload pods when the configmap is updated
prometheus:
enabled: true
serviceMonitor:
enabled: false
resources:
limits:
cpu: 300m
memory: 256Mi
routingMode: native
tunnel: disabled
envoy:
enabled: true
resources:
limits:
memory: 300Mi
requests:
cpu: 200m
memory:
gatewayAPI:
enabled: true
7 changes: 7 additions & 0 deletions infrastructure/base/cilium/source.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: cilium
spec:
interval: 30m
url: https://helm.cilium.io
2 changes: 1 addition & 1 deletion taskfile.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
env:
DOCKER_IMG: "ghcr.io/antonbabenko/pre-commit-terraform"
DOCKER_TAG: "latest"
DOCKER_TAG: "v1.79.1"
REPO_NAME: "action-terraform-ci"

version: "3"
Expand Down
4 changes: 2 additions & 2 deletions terraform/eks/eks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ module "eks" {
cluster_addons = {
coredns = {
most_recent = true
configuration_values = {
configuration_values = jsonencode({
tolerations = [
{
operator = "Exists"
}
]
}
})
}
kube-proxy = {
most_recent = true
Expand Down
6 changes: 4 additions & 2 deletions terraform/eks/helm_values/cilium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ operator:
cpu: 100m
memory: 100Mi
rollOutPods: true # Reload pods when the configmap is updated
# Can't enable servicemonitor as the CRD is not yet installed
prometheus:
enabled: true
serviceMonitor:
Expand All @@ -33,5 +34,6 @@ envoy:
requests:
cpu: 200m
memory:
gatewayAPI:
enabled: true
# Deployed using Flux as we need to deploy the Gateway API CRDs first
# gatewayAPI:
# enabled: true

0 comments on commit 99c21f5

Please sign in to comment.