Skip to content

Instantly share code, notes, and snippets.

@astoycos
Created August 1, 2023 17:45
Show Gist options
  • Select an option

  • Save astoycos/765b6c172865ae5a94306572121d1e51 to your computer and use it in GitHub Desktop.

Select an option

Save astoycos/765b6c172865ae5a94306572121d1e51 to your computer and use it in GitHub Desktop.
OCP-on-bpfd-0.2.1
  1. Deploy Cert manager
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.yaml
  1. Make bpfd ns
kubectl create ns bpfd
  1. Deploy bpfd Crds
kubectl apply -f  https://github.com/bpfd-dev/bpfd/releases/download/v0.2.1/bpfd-crds-install-v0.2.1.yaml
  1. Deploy ocp scc
kubectl apply -f - <<EOF
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: privileged-scc
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: system:openshift:scc:privileged
subjects:
- kind: ServiceAccount
  name: bpfd-daemon
  namespace: bpfd
EOF
  1. Deploy bpfd-operator
kubectl apply -f https://github.com/bpfd-dev/bpfd/releases/download/v0.2.1/bpfd-operator-install-v0.2.1.yaml
  1. Deploy examples (you will get an SCC warning but it will still work)
kubectl apply -f https://github.com/bpfd-dev/bpfd/releases/download/v0.2.1/go-xdp-counter-install-v0.2.1.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment