-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpfd-integration: add new deployment configs
Add new config to allow: - deploying bpfd (with custom blixt settings) - Run integrations on the blixt + bpfd setup - Activate all of this in CI - Allow building of new blixt program bytecode images Signed-off-by: astoycos <[email protected]>
- Loading branch information
Showing
11 changed files
with
295 additions
and
11 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- tc-ingress.yaml | ||
- tc-egress.yaml |
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,21 @@ | ||
apiVersion: bpfd.dev/v1alpha1 | ||
kind: TcProgram | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: blixt-tc-egress | ||
name: tc-egress | ||
spec: | ||
bpffunctionname: tc_egress | ||
# Select all nodes | ||
nodeselector: {} | ||
interfaceselector: | ||
primarynodeinterface: true | ||
priority: 0 | ||
direction: egress | ||
bytecode: | ||
image: | ||
url: quay.io/bpfd-bytecode/blixt-tc-egress:latest | ||
imagepullpolicy: Always | ||
mapownerselector: | ||
matchLabels: | ||
bpfd.dev/ownedByProgram: blixt-tc-ingress |
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,18 @@ | ||
apiVersion: bpfd.dev/v1alpha1 | ||
kind: TcProgram | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: blixt-tc-ingress | ||
name: tc-ingress | ||
spec: | ||
bpffunctionname: tc_ingress | ||
# Select all nodes | ||
nodeselector: {} | ||
interfaceselector: | ||
primarynodeinterface: true | ||
priority: 0 | ||
direction: ingress | ||
bytecode: | ||
image: | ||
url: quay.io/bpfd-bytecode/blixt-tc-ingress:latest | ||
imagepullpolicy: Always |
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,15 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
## bpfd CRDs | ||
- https://github.com/bpfd-dev/bpfd/releases/download/v0.3.0/bpfd-crds-install-v0.3.0.yaml | ||
## bpfd Operator | ||
- https://github.com/bpfd-dev/bpfd/releases/download/v0.3.0/bpfd-operator-install-v0.3.0.yaml | ||
|
||
patches: | ||
- path: patch.yaml | ||
target: | ||
kind: ConfigMap | ||
name: config | ||
version: v1 | ||
name: bpfd-config |
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,11 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: config | ||
data: | ||
## Can be configured at runtime | ||
bpfd.log.level: "debug" | ||
bpfd.agent.log.level: "debug" | ||
bpfd.enable.csi: "true" | ||
## Custom temporary blixt build | ||
bpfd.image: quay.io/bpfd/bpfd:blixt |
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,23 @@ | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: dataplane | ||
namespace: system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: dataplane | ||
securityContext: | ||
privileged: false | ||
volumeMounts: | ||
- name: bpf-maps | ||
mountPath: /run/bpfd/fs/maps | ||
readOnly: true | ||
volumes: | ||
- name: bpf-maps | ||
csi: | ||
driver: csi.bpfd.dev | ||
volumeAttributes: | ||
csi.bpfd.dev/program: blixt-tc-egress | ||
csi.bpfd.dev/maps: AYA_LOGS,AYA_LOG_BUF,BACKENDS,BLIXT_CONNTRACK,GATEWAY_INDEXES |
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,50 @@ | ||
# Adds namespace to all resources. | ||
namespace: blixt-system | ||
|
||
# Value of this field is prepended to the | ||
# names of all resources, e.g. a deployment named | ||
# "wordpress" becomes "alices-wordpress". | ||
# Note that it should also match with the prefix (text before '-') of the namespace | ||
# field above. | ||
namePrefix: blixt- | ||
|
||
# Labels to add to all resources and selectors. | ||
#commonLabels: | ||
# someName: someValue | ||
|
||
# - ../crd # TODO: no CRDs yet | ||
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in | ||
# crd/kustomization.yaml | ||
#- ../webhook | ||
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required. | ||
#- ../certmanager | ||
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'. | ||
#- ../prometheus | ||
|
||
# Protect the /metrics endpoint by putting it behind auth. | ||
# If you want your controlplane to expose the /metrics | ||
# endpoint w/o any authn/z, please comment the following line. | ||
|
||
# Mount the controller config file for loading manager configurations | ||
# through a ComponentConfig type | ||
#- manager_config_patch.yaml | ||
|
||
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in | ||
# crd/kustomization.yaml | ||
#- manager_webhook_patch.yaml | ||
|
||
# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. | ||
# Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks. | ||
# 'CERTMANAGER' needs to be enabled to use ca injection | ||
#- webhookcainjection_patch.yaml | ||
|
||
# the following config is for teaching kustomize how to do var substitution | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../bpf-bytecode | ||
- ../rbac | ||
- ../manager | ||
- ../dataplane | ||
patches: | ||
- path: bpfd.yaml |
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,12 @@ | ||
|
||
images: | ||
- name: ghcr.io/kong/blixt-dataplane | ||
newTag: integration-tests | ||
- name: ghcr.io/kong/blixt-controlplane | ||
newTag: integration-tests | ||
- name: ghcr.io/kong/blixt-udp-test-server | ||
newTag: integration-tests | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../bpfd |
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