You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples/README.md
+2
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
This folder shows some examples how the NetBox Operator can be used. The demo environment can be prepared with the 'docs/examples/set-up/prepare-demo-env.sh' script, which creates two kind clusters with NetBox Operator and [kro] installed. One one of the clusters a NetBox instance is installed which is available to both NetBox Operator deployments.
2. Open <http://localhost:8080> in your favorite browser and log in with the username `admin` and password `admin`
9
-
3. Create a new prefix '3.0.0.64/25' with custom fields 'environment: prod'
9
+
3. Create a new prefix '3.0.0.64/26' with custom field 'environment: prod'
10
10
11
11
# 1.1 Claim a Prefix
12
12
@@ -22,13 +22,14 @@ Before prefixes and ip addresses can be claimed with the NetBox operator, a pref
22
22
23
23

24
24
25
-
# 1.3 Claim a Prefix for a Podinfo Deployment and Create a MetalLB IPAddressPool
25
+
# 1.3 Claim a Prefix and Create a MetalLB IPAddressPool, create a depoyment which is exposed with a service using an ip from the claimed prefix
26
26
27
27
This example uses [kro] to map the claimed prefix to a MetalLB IPAddressPool. The required resource graph definitions and kro were installed with the set-up script.
28
28
29
-
1. Apply the manifests to create a deployment with a service and a metallb-ip-address-pool-netbox to create a metalLB IPAddressPool from the prefix claimed from NetBox `kubectl apply --context kind-zurich -f docs/examples/example1-getting-started/ip-address-pool.yaml`
30
-
2. Apply the manifests to createa deployment with a service that gets a ip assigned from the metalLB pool created in the prevoius step. `kubectl apply --context kind-zurich -k docs/examples/example1-getting-started/sample-deployment.yaml`
31
-
3. check if the frontend service got an external ip address assigned `kubectl get --context kind-zurich svc podinfo -n test`
29
+
1. Apply the kro resource graph definition, defining the mapping from the prefix claim to the metalLB ip address pool `kubectl apply -f docs/examples/set-up/metallb-ip-address-pool-netbox.yaml`
30
+
2. Apply the manifests to create a deployment with a service and a metallb-ip-address-pool-netbox to create a metalLB IPAddressPool from the prefix claimed from NetBox `kubectl apply --context kind-zurich -f docs/examples/example1-getting-started/ip-address-pool.yaml`
31
+
3. Apply the manifests to createa deployment with a service that gets a ip assigned from the metalLB pool created in the prevoius step. `kubectl apply --context kind-zurich -k docs/examples/example1-getting-started/sample-deployment.yaml`
32
+
4. check if the frontend service got an external ip address assigned `kubectl get --context kind-zurich svc my-nginx -n nginx`
0 commit comments