Kubernetes Manual Deploy Instructions

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 5

DownloadKubernetes-Manual-Deploy-Instructions
Open PDF In BrowserView PDF
Kubernetes Manual Deploy Instructions
Geared towards the “client” directory
From the IBMCloud help screens
Prerequisites
Download and install a few CLI tools and the IBM
Kubernetes Service plug-in.
curl -sL https://ibm.biz/idt-installer | bash
Gain access to your cluster
1. Log in to your IBM Cloud account.
ibmcloud login -a https://api.ng.bluemix.net
If you have a federated ID, use ibmcloud login --sso to log
in to the IBM Cloud CLI.
2. Target the IBM Cloud Container Service region in which
you want to work.
ibmcloud cs region-set  // eg. us-south
3. Get the command to set the environment variable and
download the Kubernetes configuration files.
ibmcloud cs cluster-config  // e.g. TonyCluster

4. Set the KUBECONFIG environment variable. Copy the
output from the previous command and paste it in your
terminal. The command output should look similar to the
following.
export KUBECONFIG=/Users/$USER/.bluemix/plugins/
container-service/clusters/Tony-Cluster/kube-confighou02-Tony-Cluster.yml
Alternatively, you may directly download your kubeconfig
files to manually configure the kubernetes cluster context.
5. Verify that you can connect to your cluster by listing
your worker nodes.
kubectl get nodes
It can take a few minutes for your cluster to be ready.
While you wait, try creating a registry! When it's ready, you
can use the Kubernetes dashboard button to access your
cluster information.Need more info? Read the docs.
Other help
quota for images
ibmcloud cr quota
ibmcloud cr images

ibmcloud cr image-rm 
To build the image:
docker build -t react-app .
docker run -it -p 3000:3000 --rm react-app
docker run -it react-app /bin/bash
docker build -t registry.ng.bluemix.net//reactapp .
IMPORTANT
ibmcloud cr login
docker tag react-app registry.ng.bluemix.net/
//react-app:latest

docker push registry.ng.bluemix.net//
/react-app:latest
ibmcloud cr images
kubectl run react-app-deployment -image=rregistry.ng.bluemix.net///react-app
kubectl expose deployment.apps/react-app-deployment --

type=NodePort --port=3000 --name=react-app
service/react-app exposed
kubectl describe service react-app

Name:
react-app
Namespace:
default
Labels:
run=react-app-deployment
Annotations:

Selector:
run=react-app-deployment
Type:
NodePort
IP:
xxx.xx.xx.xx
Port:
 3000/TCP
TargetPort:
3000/TCP
NodePort:
 30611/TCP
Endpoints:
Session Affinity:
None
External Traffic Policy: Cluster
Events:


ibmcloud cs workers  //e.g Tony-Cluster
Public IP
Private IP
Machine Type State Status Zone Version
kube-hou02-paxxxxxxx-w1 xxx.xxx.xxx.xx xx.xx.xx.xx
free
normal Ready hou02 x.xx.xx_xx*
* To update to 1.10.12_1543 version, run 'ibmcloud ks

worker-update'. Review and make any required version
changes before you update: https://console.bluemix.net/
docs/containers/cs_cluster_update.html#worker_node



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.3
Linearized                      : No
Page Count                      : 5
Title                           : Kubernetes-Manual-Deploy-Instructions
Producer                        : macOS Version 10.14.2 (Build 18C54) Quartz PDFContext
Creator                         : TextEdit
Create Date                     : 2019:02:11 17:22:09Z
Modify Date                     : 2019:02:11 17:22:09Z
EXIF Metadata provided by EXIF.tools

Navigation menu