Skip to content

Commit 139a1d5

Browse files
authored
Correcting indentation for sample CNI config
Correcting indentation for the sample CNI config
1 parent 3fad248 commit 139a1d5

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

source/plugins/cloudstack-kubernetes-service.rst

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -657,37 +657,37 @@ Sample Calico CNI configuration data used which is appended to the existing Kube
657657
.. code-block:: bash
658658
659659
#cloud-config
660-
- for i in {1..3}; do curl https://raw.githubusercontent.com/projectcalico/calico/v3.28.0/manifests/calico.yaml -o /home/cloud/calico.yaml && break || sleep 5; done
661-
- until [ -f /home/cloud/success ]; do sleep 5; done
662-
- echo "Kubectl apply file"
663-
- for i in {1..3}; do sudo /opt/bin/kubectl create -f /home/cloud/calico.yaml && break || sleep 5; done
664-
- export PATH=$PATH:/home/cloud
665-
- |
666-
cat << 'EOF' > /home/cloud/create-configs.sh
667-
#!/bin/bash
668-
cat << 'EOL' > /home/cloud/bgp-config.yaml
669-
apiVersion: crd.projectcalico.org/v1
670-
kind: BGPConfiguration
671-
metadata:
672-
name: default
673-
spec:
674-
logSeverityScreen: Debug
675-
asNumber: {{ AS_NUMBER }}
676-
EOL
677-
cat << 'EOL' > /home/cloud/bgp-peer.yaml
678-
apiVersion: crd.projectcalico.org/v1
679-
kind: BGPPeer
680-
metadata:
681-
name: bgp-peer-example
682-
spec:
683-
peerIP: {{ ds.meta_data.peer_ip_address }}
684-
asNumber: {{ ds.meta_data.peer_as_number }}
685-
EOL
686-
EOF
687-
- chmod +x /home/cloud/create-configs.sh
688-
- /home/cloud/create-configs.sh
689-
- for i in {1..3}; do sudo /opt/bin/kubectl apply -f /home/cloud/bgp-config.yaml && break || sleep 5; done
690-
- for i in {1..3}; do sudo /opt/bin/kubectl apply -f /home/cloud/bgp-peer.yaml && break || sleep 5; done
660+
- for i in {1..3}; do curl https://raw.githubusercontent.com/projectcalico/calico/v3.28.0/manifests/calico.yaml -o /home/cloud/calico.yaml && break || sleep 5; done
661+
- until [ -f /home/cloud/success ]; do sleep 5; done
662+
- echo "Kubectl apply file"
663+
- for i in {1..3}; do sudo /opt/bin/kubectl create -f /home/cloud/calico.yaml && break || sleep 5; done
664+
- export PATH=$PATH:/home/cloud
665+
- |
666+
cat << 'EOF' > /home/cloud/create-configs.sh
667+
#!/bin/bash
668+
cat << 'EOL' > /home/cloud/bgp-config.yaml
669+
apiVersion: crd.projectcalico.org/v1
670+
kind: BGPConfiguration
671+
metadata:
672+
name: default
673+
spec:
674+
logSeverityScreen: Debug
675+
asNumber: {{ AS_NUMBER }}
676+
EOL
677+
cat << 'EOL' > /home/cloud/bgp-peer.yaml
678+
apiVersion: crd.projectcalico.org/v1
679+
kind: BGPPeer
680+
metadata:
681+
name: bgp-peer-1
682+
spec:
683+
peerIP: {{ ds.meta_data.peer_ip_address }}
684+
asNumber: {{ ds.meta_data.peer_as_number }}
685+
EOL
686+
EOF
687+
- chmod +x /home/cloud/create-configs.sh
688+
- /home/cloud/create-configs.sh
689+
- for i in {1..3}; do sudo /opt/bin/kubectl apply -f /home/cloud/bgp-config.yaml && break || sleep 5; done
690+
- for i in {1..3}; do sudo /opt/bin/kubectl apply -f /home/cloud/bgp-peer.yaml && break || sleep 5; done
691691
692692
693693
The CNI Configuration creation allows specifying the parameters to be set as a comma separated list:

0 commit comments

Comments
 (0)