Jump to: navigation, search

Difference between revisions of "StarlingX/NFV/VIM Webserver"

< StarlingX‎ | NFV
(Created page with "The VIM has an internal webserver running for debug purposes. This runs on port 32323 but is not accessible from outside the controller. To open up this port, do the following...")
 
 
Line 1: Line 1:
 
The VIM has an internal webserver running for debug purposes. This runs on port 32323 but is not accessible from outside the controller. To open up this port, do the following:
 
The VIM has an internal webserver running for debug purposes. This runs on port 32323 but is not accessible from outside the controller. To open up this port, do the following:
 
<pre>
 
<pre>
# create GlobalNetworkPolicy for VIM webserver access
+
# create GlobalNetworkPolicy for VIM webserver access
kubectl apply -f - <<EOF
+
kubectl apply -f - <<EOF
apiVersion: crd.projectcalico.org/v1
+
apiVersion: crd.projectcalico.org/v1
kind: GlobalNetworkPolicy
+
kind: GlobalNetworkPolicy
metadata:
+
metadata:
  name: allow-vim-webserver
+
  name: allow-vim-webserver
spec:
+
spec:
  ingress:
+
  ingress:
  - action: Allow
+
  - action: Allow
    destination:
+
    destination:
      ports:
+
      ports:
      - 32323
+
      - 32323
    protocol: TCP
+
    protocol: TCP
  order: 500
+
  order: 500
  selector: has(iftype) && iftype == 'oam'
+
  selector: has(iftype) && iftype == 'oam'
  types:
+
  types:
  - Ingress
+
  - Ingress
EOF
+
EOF
 
</pre>
 
</pre>
  
 
Once that is done, the VIM webserver can be reached at <OAM IP>:32323.
 
Once that is done, the VIM webserver can be reached at <OAM IP>:32323.

Latest revision as of 14:48, 23 August 2019

The VIM has an internal webserver running for debug purposes. This runs on port 32323 but is not accessible from outside the controller. To open up this port, do the following:

# create GlobalNetworkPolicy for VIM webserver access
kubectl apply -f - <<EOF
apiVersion: crd.projectcalico.org/v1
kind: GlobalNetworkPolicy
metadata:
  name: allow-vim-webserver
spec:
  ingress:
  - action: Allow
    destination:
      ports:
      - 32323
    protocol: TCP
  order: 500
  selector: has(iftype) && iftype == 'oam'
  types:
  - Ingress
EOF

Once that is done, the VIM webserver can be reached at <OAM IP>:32323.