Skip to content

Commit

Permalink
Add CNI cilium configuration (#164)
Browse files Browse the repository at this point in the history
* add base helm installation of cilium

Signed-off-by: Michael Fornaro <[email protected]>

* fix workflows and peerauthentication scope

Signed-off-by: Michael Fornaro <[email protected]>

* remove workflow dispatch

Signed-off-by: Michael Fornaro <[email protected]>
  • Loading branch information
xunholy authored Nov 16, 2020
1 parent 81f333d commit 4c8a799
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 13 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/flux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ name: flux
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
tag:
description: 'Use this tag instead of most recent'
required: false
default: latest

jobs:
auto-update:
Expand All @@ -30,9 +24,9 @@ jobs:
branch: update/flux
title: Auto-update flux version
signoff: true
committer: "Michael Fornaro [email protected]"
author: "Michael Fornaro [email protected]"
committer: "Michael Fornaro <[email protected]>"
author: "Michael Fornaro <[email protected]>"
commit-message: Auto-update flux version
body: |
Update flux version of tools
Signed-off-by: Michael Fornaro <[email protected]>
labels: dependencies
7 changes: 3 additions & 4 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ jobs:
branch: update/pre-commit-auto-update
title: Auto-update pre-commit hooks
signoff: true
committer: "Michael Fornaro [email protected]"
author: "Michael Fornaro [email protected]"
committer: "Michael Fornaro <[email protected]>"
author: "Michael Fornaro <[email protected]>"
commit-message: Auto-update pre-commit hooks
body: |
Update versions of tools in pre-commit
configs to latest version
Signed-off-by: Michael Fornaro <[email protected]>
labels: dependencies
94 changes: 94 additions & 0 deletions cilium/install/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
image:
repository: docker.io/cilium/cilium-dev
tag: v1.9.0

# autoDirectNodeRoutes enables installation of PodCIDR routes between worker
# nodes if worker nodes share a common L2 network segment.
autoDirectNodeRoutes: true

hubble:
enabled: true
metrics:
enabled:
- dns:query;ignoreAAAA
- drop
- tcp
- flow
- icmp
- http
listenAddress: ':4244'
relay:
enabled: true
image:
repository: docker.io/cilium/hubble-relay-dev
tag: v1.9.0
ui:
enabled: true
frontend:
image:
repository: docker.io/mcfio/hubble-ui-dev
tag: v0.7.3
backend:
image:
repository: docker.io/mcfio/hubble-ui-backend-dev
tag: v0.7.3
proxy:
image:
repository: docker.io/envoyproxy/envoy
tag: v1.16.0

ipam:
operator:
# default: "10.0.0.0/8", however, using existing podCIDR
clusterPoolIPv4PodCIDR: 172.16.0.0/16
clusterPoolIPv4MaskSize: 24

# kubeProxyReplacement enables kube-proxy replacement in Cilium BPF datapath
kubeProxyReplacement: strict

# kubeProxyReplacement healthz server bind address
# To enable set the value to '0.0.0.0:10256' for all ipv4
# addresses and this '[::]:10256' for all ipv6 addresses.
# By default it is disabled.
kubeProxyReplacementHealthzBindAddr: '0.0.0.0:10256'

# prometheus enables serving metrics on the configured port at /metrics
prometheus:
enabled: true
port: 9090
# This requires the prometheus CRDs to be available (see https://github.com/prometheus-operator/prometheus-operator/blob/master/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml)
serviceMonitor:
enabled: false

operator:
image:
repository: cilium/operator-dev
tag: v1.9.0
prometheus:
enabled: true
serviceMonitor:
enabled: true

# kubeConfigPath: ~/.kube/config
k8sServiceHost: 192.168.1.200
k8sServicePort: 8443

# nativeRoutingCIDR allows to explicitly specify the CIDR for native routing. This
# value corresponds to the configured cluster-cidr.
nativeRoutingCIDR: 192.168.1.0/24

# tunnel is the encapsulation configuration for communication between nodes
tunnel: disabled

# loadBalancer is the general configuration for service load balancing
loadBalancer:
# algorithm is the name of the load balancing algorithm for backend
# selection e.g. random or maglev
algorithm: maglev
# mode is the operation mode of load balancing for remote backends
# e.g. snat, dsr, hybrid
mode: dsr

# disableEnvoyVersionCheck removes the check for Envoy, which can be useful on
# AArch64 as the images do not currently ship a version of Envoy.
disableEnvoyVersionCheck: true
1 change: 1 addition & 0 deletions cluster/istio-system/peerauthentication.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: 'security.istio.io/v1beta1'
kind: 'PeerAuthentication'
metadata:
name: 'default'
namespace: istio-system
spec:
mtls:
mode: STRICT

0 comments on commit 4c8a799

Please sign in to comment.