feat(edge): Added ubuntu buildkit edge v1 (running) and v2 (not running) example
All checks were successful
test / test (push) Successful in 1m10s

This commit is contained in:
Richard Robert Reitz 2025-10-27 16:32:57 +01:00
parent 9772a072e8
commit ece3dddfe6
3 changed files with 115 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# Is there a swagger file for the new EdgeConnect API?
# How does it differ from the EdgeXR API?
kind: edgeconnect-deployment
metadata:
name: "edge-ubuntu-buildkit" # name could be used for appName
appVersion: "1.0.0"
organization: "edp2"
spec:
# dockerApp: # Docker is OBSOLETE
# appVersion: "1.0.0"
# manifestFile: "./docker-compose.yaml"
# image: "https://registry-1.docker.io/library/nginx:latest"
k8sApp:
manifestFile: "./k8s-deployment.yaml"
infraTemplate:
- region: "EU"
cloudletOrg: "TelekomOP"
cloudletName: "Munich"
flavorName: "EU.small"
network:
outboundConnections:
- protocol: "tcp"
portRangeMin: 80
portRangeMax: 80
remoteCIDR: "0.0.0.0/0"
- protocol: "tcp"
portRangeMin: 443
portRangeMax: 443
remoteCIDR: "0.0.0.0/0"

View file

@ -0,0 +1,29 @@
# Is there a swagger file for the new EdgeConnect API?
# How does it differ from the EdgeXR API?
kind: edgeconnect-deployment
metadata:
name: "edge-ubuntu-buildkit" # name could be used for appName
appVersion: "1"
organization: "edp2-orca"
spec:
# dockerApp: # Docker is OBSOLETE
# appVersion: "1.0.0"
# manifestFile: "./docker-compose.yaml"
# image: "https://registry-1.docker.io/library/nginx:latest"
k8sApp:
manifestFile: "./k8s-deployment.yaml"
infraTemplate:
- region: "US"
cloudletOrg: "TelekomOp"
cloudletName: "gardener-shepherd-test"
flavorName: "defualt"
network:
outboundConnections:
- protocol: "tcp"
portRangeMin: 80
portRangeMax: 80
remoteCIDR: "0.0.0.0/0"
- protocol: "tcp"
portRangeMin: 443
portRangeMax: 443
remoteCIDR: "0.0.0.0/0"

View file

@ -0,0 +1,57 @@
# Add remote buildx builder:
# docker buildx create --use --name sidecar tcp://127.0.0.1:1234
# Run build:
# docker buildx build .
apiVersion: v1
kind: Service
metadata:
name: ubuntu-runner
labels:
run: ubuntu-runner
spec:
type: LoadBalancer
ports:
- name: tcp80
protocol: TCP
port: 80
targetPort: 80
selector:
run: ubuntu-runner
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: ubuntu-runner
name: ubuntu-runner
spec:
replicas: 1
selector:
matchLabels:
app: ubuntu-runner
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: ubuntu-runner
annotations:
container.apparmor.security.beta.kubernetes.io/buildkitd: unconfined
spec:
containers:
- name: ubuntu
image: edp.buildth.ing/devfw-cicd/catthehacker/ubuntu:act-22.04-amd64
command:
- sleep
- 7d
- args:
- --allow-insecure-entitlement=network.host
- --oci-worker-no-process-sandbox
- --addr
- tcp://127.0.0.1:1234
image: moby/buildkit:v0.25.1-rootless
imagePullPolicy: IfNotPresent
name: buildkitd