Giter Site home page Giter Site logo

containers-2019's Introduction

containers-2019

The workshop on containers in Silicon Valley. If you like it, please star it!

This page is here: ibm.biz/sv-containers-2019

Start with the lite account

Sign up for the IBM Cloud lite account: cloud.ibm.com

Kubernetes basics - CLI

In order to work with Kubernetes in the command line you need to install the following:

  • curl - for downloading tools
  • git - for downloading the git repo
  • ibm cloud cli - for interacting with ibm cloud
  • kubectl - for interacting with kubernetes

On Ubuntu Linux run this command: sudo apt install curl git , on Mac, since curl comes with the system, you can run just this: brew install git

Now you are ready to install IBM Cloud CLI

On Linux: curl -fsSL https://clis.ng.bluemix.net/install/linux | sh , on Mac: curl -fsSL https://clis.ng.bluemix.net/install/osx | sh

Also you need to install the Container plugins for IBM Cloud:

ibmcloud plugin install -r "IBM Cloud" container-service
ibmcloud plugin install -r "IBM Cloud" container-registry

Finally install Kubectl

On Linux:

curl --progress-bar -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
sudo mv kubectl /usr/local/bin
sudo chmod +x /usr/local/bin/kubectl

And on Mac:

curl --progress-bar -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl
sudo mv kubectl /usr/local/bin
sudo chmod +x /usr/local/bin/kubectl

Steps to access the Kubernetes cluster

  1. ibmcloud login you might want to use some parameters when login
  2. Set an environment variable for your cluster name: export MYCLUSTER=<your_cluster_name>
  3. Download the configuration file and certificates for your cluster using the cluster-config command.
ibmcloud ks cluster-config $MYCLUSTER
  1. and then export the resulting env (the example from my setup below)
export KUBECONFIG=/Users/your-user/.bluemix/plugins/container-service/clusters/name-of-your-cluster/kube-config-some-details-name-of-your-cluster.yml

Checking the access to your cluster: kubectl get nodes

first steps

Get basic information about your cluster and its worker nodes. This information can help you manage your cluster and troubleshoot issues.

  1. View details of your cluster. ibmcloud ks cluster-get $MYCLUSTER

  2. Verify the worker nodes in the cluster. ibmcloud ks workers $MYCLUSTER and check one of the worker nodes: ibmcloud ks worker-get <worker_ID>

  3. Validate access to your cluster. a. View nodes in the cluster. kubectl get node

b. View services, deployments, and pods.

kubectl get svc,deploy,po --all-namespaces

the kube-101 lab

Now you are ready to access Kubernetes 101 workshop - see the link here: https://ibm.gitlab.io/workshop/kube101/

Creating the Kubernetes cluster

https://cloud.ibm.com/docs/tutorials/multi-region-k8s-cis.html#resilient-and-secure-multi-region-kubernetes-clusters-with-cloud-internet-services

Couple words on the enterprise grade private docker image repo

Some steps to use private registry -

scan images and verify signatures

image trust https://console.bluemix.net/docs/services/Registry/registry_trusted_content.html#registry_trustedcontent

locking down Kubernetes with proper RBACs

discussing resilient multi-region Kubernetes cluster

the simple example of deploying multi-region K8s cluster on IBM Cloud:

Knative

Checkout the docs: https://www.knative.dev/docs/ And clone the following example on IBM Cloud: git clone https://github.com/IBM-Cloud/knative-node-deploy

IBM Cloud Private guide

previous meetups on containers

in 2019 we had these webinars on containers:

in 2018 we ran those webinars on containers:

subscribe for more

If you want to get updates on this repository please star it. Follow me on Twitter @blumareks. Thank you for your interest in this repo.

containers-2019's People

Contributors

blumareks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.