Table of Contents |
---|
Get some machines
Setup Kubernates as per ONAP on Kubernetes
Validate the Cluster
Using the example on page 122 of Kubernetes Up & Running.
Code Block |
---|
kubectl run nginx --image=nginx:1.7.12
kubectl get deployments nginx
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
nginx 1 1 1 1 12s
kubectl scale deployments nginx --replicas=6
deployment "nginx" scaled
michael@oskub1:~$ kubectl scale deployments nginx --replicas=6
deployment "nginx" scaled
michael@oskub1:~$ kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
default nginx-1389790254-cf284 1/1 Running 0 8s
default nginx-1389790254-dn1rs 1/1 Running 0 8s
default nginx-1389790254-lgkz3 1/1 Running 0 1h
default nginx-1389790254-p05zz 1/1 Running 0 8s
default nginx-1389790254-r9j7d 1/1 Running 0 8s
default nginx-1389790254-rhn7p 1/1 Running 0 8s
kube-system heapster-4285517626-x080g 1/1 Running 0 2h
kube-system kube-dns-638003847-tst97 3/3 Running 0 2h
kube-system kubernetes-dashboard-716739405-fnn3g 1/1 Running 1 2h
kube-system monitoring-grafana-2360823841-hr824 1/1 Running 0 2h
kube-system monitoring-influxdb-2323019309-k7h1t 1/1 Running 0 2h
kube-system tiller-deploy-737598192-x9wh5 1/1 Running 0 2h |