Skip to content

Commit 8822fb9

Browse files
committed
added command for weave net and calico
1 parent 12c0845 commit 8822fb9

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

docs/book/src/development/common.md

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,20 @@
6060
clusterctl get kubeconfig capc-cluster > capc-cluster.kubeconfig
6161
```
6262
63-
6. Install calico on the workload cluster so that pods can see each other
63+
6. Install calico or weave net cni plugin on the workload cluster so that pods can see each other
6464
```
65-
KUBECONFIG=capc-cluster.kubeconfig kubectl apply -f https://projectcalico.docs.tigera.io/manifests/calico.yaml
65+
KUBECONFIG=capc-cluster.kubeconfig kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/master/manifests/calico.yaml
66+
67+
```
68+
69+
```
70+
or
71+
72+
```
73+
74+
```
75+
KUBECONFIG=capc-cluster.kubeconfig kubectl apply -f https://raw.githubusercontent.com/weaveworks/weave/master/prog/weave-kube/weave-daemonset-k8s-1.11.yaml
76+
6677
```
6778
6879
7. Verify the K8s cluster is fully up. (It may take a minute for the nodes status to all reach *ready* state.)
@@ -87,7 +98,7 @@ KUBECONFIG=capc-cluster.kubeconfig kubectl logs test-thing
8798
```
8899
89100
### kubectl/clusterctl Reference:
90-
- Pods in capc-cluster -- cluster running in Apache CloudStack
101+
- Pods in capc-cluster -- cluster running in Apache CloudStack with calico cni
91102
```
92103
% KUBECONFIG=capc-cluster.kubeconfig kubectl get pods -A
93104
NAMESPACE NAME READY STATUS RESTARTS AGE
@@ -104,6 +115,23 @@ kube-system kube-proxy-6g9zb 1/1
104115
kube-system kube-proxy-7gjbv 1/1 Running 0 9m18s
105116
kube-system kube-scheduler-capc-cluster-control-plane-tknwx 1/1 Running 0 9m21s
106117
```
118+
- Pods in capc-cluster -- cluster running in Apache CloudStack with weave net cni
119+
120+
```
121+
%KUBECONFIG=capc-cluster.kubeconfig kubectl get pods -A
122+
NAMESPACE NAME READY STATUS RESTARTS AGE
123+
default test-thing 0/1 Completed 0 38s
124+
kube-system coredns-5d78c9869d-9xq2s 1/1 Running 0 21h
125+
kube-system coredns-5d78c9869d-gphs2 1/1 Running 0 21h
126+
kube-system etcd-capc-cluster-control-plane-49khm 1/1 Running 0 21h
127+
kube-system kube-apiserver-capc-cluster-control-plane-49khm 1/1 Running 0 21h
128+
kube-system kube-controller-manager-capc-cluster-control-plane-49khm 1/1 Running 0 21h
129+
kube-system kube-proxy-8lfnm 1/1 Running 0 21h
130+
kube-system kube-proxy-brj78 1/1 Running 0 21h
131+
kube-system kube-scheduler-capc-cluster-control-plane-49khm 1/1 Running 0 21h
132+
kube-system weave-net-rqckr 2/2 Running 1 (3h8m ago) 3h8m
133+
kube-system weave-net-rzms4 2/2 Running 1 (3h8m ago) 3h8m
134+
```
107135
108136
- Pods in original kind cluster (also called bootstrap cluster, management cluster)
109137
```
@@ -128,4 +156,4 @@ local-path-storage local-path-provisioner-547f784dff-f2g7r
128156
```
129157
<!--
130158
// ANCHOR_END: common-development
131-
-->
159+
-->

0 commit comments

Comments
 (0)