Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Rancher & Kubernetes

Rancher & Kubernetes

Cloud Native Tokyo #01 ~Featuring OpenShift & Rancher~

cyberblack28

April 10, 2019
Tweet

More Decks by cyberblack28

Other Decks in Technology

Transcript

  1. Cloud Native Tokyo #01
    2019.4.10
    © 2019 cyberblack28
    Rancher &
    Kubernetes

    View Slide

  2. Profile
    Twitter:cyberblack28
    Hatena Blog:https://cyberblack28.hatenablog.com/
    https://speakerdeck.com/cyberblack28
    Job
    Educational Solution Architect
    Developer Advocate / Technical Evangelist
    Infrastructure Engineer
    Frontend Engineer
    Community
    Music,Live,FES !! Take a picture !!
    https://www.flickr.com/photos/cyberblack
    ISBN-10: 4798155373
    ISBN-13: 978-4798155371
    I wrote the Chapter 6 Rancher 2.0 part.
    Release on March 15, 2018
    #rancherjp
    #kujiraya
    #deepcn

    View Slide

  3. Profile
    http://bit.ly/thinkit_rancher

    View Slide

  4. AP Communications Co., Ltd
    We’re hireling !!
    Docker Kubernetes Rancher CloudNative

    View Slide

  5. 1. What’s Rancher
    2. Rancher on Kubernetes
    3. Kubernetes Cluster Create & Import
    4. Kubernetes Cluster Manage
    5. Rancher Market Share
    6. Rancher In The Future
    7. Information
    Agenda

    View Slide

  6. What’s RancheR

    View Slide

  7. What’s Rancher ?
    • Kubernetes management platform for building and operating Kubernetes cluster, importing
    existing Kubernetes cluster, regardless of cloud or on-premise and multi-cloud or hybrid-cloud
    • Application management with helm-based catalog function
    • Kubernetes management linked with OSS such as GitLab, Prometheus, Fluentd
    • Development is Rancher Labs(http://rancher.com/)
    • Open source software (with paid version with support)

    View Slide

  8. What’s Rancher ?
    THE FORRESTER NEW WAVE
    Enterprise Container Platform Software Suites
    Q4 2018
    出典「The Forrester New Wave?: Enterprise Container Platform Software Suites, Q4 2018
    The Eight Providers That Matter Most And How They Stack Up」(https://bit.ly/theforresternewwave)

    View Slide

  9. Feature of Rancher2.2
    Kubernetes
    Clusters
    Create
    Import
    EKS
    GKE
    AKS
    vSphere
    Bare Metal
    Create,Import,Manage Kubernetes Clusters !!
    Manage
    “Kubernetes Everywhere”

    View Slide

  10. Feature of Rancher2.2
    Kubernetes is becoming the Linux of the cloud
    by Jim Zemlin (The Linux Foundation)

    View Slide

  11. Feature of Rancher2.2
    Multi-Cloud to Multi-Kubernetes
    Cloud Native to Kubernetes Native

    View Slide

  12. Feature of Rancher2.2
    Kubernetes
    Clusters
    Create
    Import EKS
    GKE
    AKS
    vSphere
    Bare Metal
    Create,Import,Manage Kubernetes Clusters !!
    Manage
    Kubernetes is becoming the Linux of the cloud
    by Jim Zemlin (The Linux Foundation)
    Multi Cloud to Multi Kubernetes
    CloudNtive to KubernetesNative

    View Slide

  13. Google announces new service "Anthos"
    Kubernetes
    Clusters
    Create
    Import EKS
    GKE
    AKS
    vSphere
    Bare Metal
    Create,Import,Manage Kubernetes Clusters !!
    Manage
    Kubernetes is becoming the Linux of the cloud
    by Jim Zemlin (The Linux Foundation)
    Multi Cloud to Multi Kubernetes
    CloudNtive to KubernetesNative
    A platform for hybrid-cloud and multi-cloud that enables containerized applications to
    run anywhere on premises and in the cloud.
    Introducing Anthos: An entirely new platform for
    managing applications in today's multi-cloud world
    by Google Cloud Blog 2019.4.10

    View Slide

  14. Rancher Labs Official Blog
    Kubernetes
    Clusters
    Create
    Import EKS
    GKE
    AKS
    vSphere
    Bare Metal
    Create,Import,Manage Kubernetes Clusters !!
    Manage
    Kubernetes is becoming the Linux of the cloud
    by Jim Zemlin (The Linux Foundation)
    Multi Cloud to Multi Kubernetes
    CloudNtive to KubernetesNative
    This is super exciting news for Rancher. In Google Anthos, we see great alignment with Rancher’s
    vision. We believe Kubernetes will become the standardized infrastructure provided by all public and
    private clouds, and an enterprise Kubernetes platform must deliver multi-cluster, multi-cloud
    management.
    http://bit.ly/rancher_blog_anthos

    View Slide

  15. Feature of Rancher2.2
    One Click Deployment ! !
    You can deploy the application simply by selecting from
    the catalog list and clicking the launch button.
    Creating Private Catalogs ! !
    You can also register catalogs created by individuals.

    View Slide

  16. Feature of Rancher2.2
    Major developer catalogs

    View Slide

  17. Rancher 2.2
    • Advanced Monitoring
    Main outline
    Monitoring of clusters, projects and k8s components is now supported through integration
    with Prometheus.
    • Multi-Cluster Apps
    By augmenting the functionality of Helm with Rancher's multi-cluster management capabilities, users are now
    able to seamlessly manage their applications across clusters.
    • Latest - v2.2.1 - rancher/rancher:latest
    • Stable - v2.1.8 - rancher/rancher:stable
    Version (2019/4)
    https://github.com/rancher/rancher/releases/tag/v2.2.0
    Release Note
    Webinar
    http://bit.ly/rancher_webinar_22

    View Slide

  18. Advanced Monitoring
    1.Change to “Enable” and click “Save” button
    1
    2

    View Slide

  19. 2.Make sure the graph redesign and the Grafana icon appear.
    Advanced Monitoring

    View Slide

  20. 3.Expand accordion menu
    You can check the detailed
    information by clicking the graph.
    Advanced Monitoring

    View Slide

  21. 4.Click on the Grafana icon to see in the Grafana Dashboard
    Advanced Monitoring

    View Slide

  22. • December 2018 Online Meetup Introducing
    Rancher's New Multi Tenant Prometheus
    Support
    Webinar
    • Rancher v2.2.0-Alpha3 Multi-Tenant Prometheus Supportについて
    Docs
    http://bit.ly/rancher_webinar_prometheus
    http://bit.ly/rancher_qiita_prometheus
    Advanced Monitoring

    View Slide

  23. Multi-Cluster Apps
    Deploy and deploy apps to multiple Kubernetes
    clusters, and launch "Rancher 2.2" with new features
    such as rolling updates by Publickey 2019.2.15
    https://rancher.com/blog/
    http://bit.ly/publickey_rancher

    View Slide

  24. Multi-Cluster Apps
    A new feature of Rancher 2.2 is the ability to deploy applications from the catalog in bulk to Multi
    Kubernetes Cluster.

    View Slide

  25. In conjunction with Rancher, run Multi-Cluster Apps from the place where I built a cluster on AKS, EKS, GKE.
    Multi-Cluster Apps

    View Slide

  26. 1.Select the upper menu “Multi-Cluster Apps” and press the “Launch” button.
    Multi-Cluster Apps

    View Slide

  27. 2.Enter “word” in the search field and press the “View Details” button on “wordpress”
    Multi-Cluster Apps

    View Slide

  28. 3.Set 1 to 3
    1.Enter any name
    2. Press "Add Target" button twice
    3. Select Default for "aks-kubernetes-
    cluster", "eks-kubernetes-cluster", and
    "gke-kubernetes-cluster"
    By selecting the
    namespace for the
    kubernetes cluster to
    deploy
    You can deploy to multi-
    kubernetes cluster.
    Multi-Cluster Apps

    View Slide

  29. 4.Set 4.1 to 4 and press the “Launch” button
    1.Enter any password
    3.Select「False」
    2.Enter any password
    4.Select「L4 Balancer」
    Multi-Cluster Apps

    View Slide

  30. 5.Completed wordpress deployment on aks-kubernetes-cluster, eks-kubernetes-cluster, gke-kubernetes-
    cluster
    Multi-Cluster Apps

    View Slide

  31. 6. Access WordPress by clicking 443/tcp, 80/tcp in Service of AKS, EKS, GKE
    Multi-Cluster Apps

    View Slide

  32. • February 2019 Online Meetup: Multi Cluster
    Applications, Global DNS, and Multi Tenant
    Catalogs
    Webinar
    • Rancher 2.2 Tech Preview Multi-Cluster App
    Docs
    Multi-Cluster Apps
    http://bit.ly/rancher_webinar_m-capps
    http://bit.ly/rancher_qiita_m-capps

    View Slide

  33. Rancher on kubernetes

    View Slide

  34. Rancher High Availability & Single Node Installation
    1.High Availability Installation
    High Availability Installation installs Rancher on your Kubernetes cluster. Establish high availability with the
    features of Kubernetes. Recommended for production environments that operate 24/365.
    • DNS for Rancher should resolve to a Layer 4 load balancer (TCP)
    • The Load Balancer should forward port TCP/80 and TCP/443 to all 3 nodes in the Kubernetes cluster.
    • The Ingress controller will redirect HTTP to HTTPS and terminate SSL/TLS on port TCP/443.
    • The Ingress controller will forward traffic to port TCP/80 on the pod in the Rancher deployment.
    L4
    Load Balancer
    (TCP)

    View Slide

  35. Rancher High Availability & Single Node Installation
    2.Single Node Installation
    Single Node Installation installs Rancher on a single Linux host. It is recommended for development and test
    environments as it is very easy to set up.
    Step 2: Start the server
    $ sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
    Web Access!! https:///
    Step 1: Prepare a Linux Host
    OS Hardware Docker
    Ubuntu 16.04 (64-bit) Small:
    vCPUs 1
    MEM 4GB
    Up to 5(Clusters)
    Medium:
    vCPUs 2
    MEM 8GB
    Up to 10(Clusters)
    17.03.x, 18.06.x, 18.09.x
    Ubuntu 18.04 (64-bit) 18.06.x, 18.09.x
    Red Hat Enterprise Linux (RHEL)/CentOS 7.6 (64-bit) RHEL Docker 1.13
    17.03.x, 18.06.x, 18.09.x
    RancherOS 1.5.1 (64-bit) 17.03.x, 18.06.x, 18.09.x
    Windows Server version 1803 (64-bit)
    17.06

    View Slide

  36. Rancher High Availability & Single Node Installation
    3.Structure of Single Node Installation
    When Rancher generates its own Kubeconfig file, it will build an external Kubernetes if Kubeconfig file is passed
    from outside, an internal Kubernetes if it already has an internal Kubeconfig file, and a new internal Kubernetes
    otherwise.
    It is working. External Kubernetes is a pattern of external Kubernetes clusters running Rancher in a high
    availability installation.
    On the other hand, internal Kubernetes are called embedded kubernetes, and if it is judged that Kubernetes
    will continue to run indefinitely but there is no Kubernetes to operate, they will be the embedded Kubernetes
    that Rancher acts as Kubernetes.
    For details on the embedded logic of Embedded Kubernetes, see here !!
    (https://github.com/rancher/rancher/blob/v2.1.5/pkg/embedded/embedded.go#L36).

    View Slide

  37. Kubernetes Cluster
    Create & Import

    View Slide

  38. Kubernetes Cluster Create & Import
    1.About Add Cluster
    Select when linking with GKE, EKS, AKS
    Select when linking with Cloud Provider such as EC2,
    Azure, DigitalOcean, vSpher, etc.
    Select when linking with an existing Kubernetes Cluster
    Select when creating a Kubernetes cluster on premises
    or in a virtual machine.

    View Slide

  39. Kubernetes Cluster Create & Import
    2.Managed Kubernetes GKE EKS AKS

    View Slide

  40. Kubernetes Cluster Create & Import
    3.Cloud Provider EC2 Azure DagitalOcean vSphere(Default)

    View Slide

  41. Kubernetes Cluster Create & Import
    4.Custom
    Execute generated command on On-premises or VM instance.

    View Slide

  42. Kubernetes Cluster Create & Import
    5.Import
    Execute generated command on existing Kubernetes cluster.

    View Slide

  43. Kubernetes Cluster
    Manage

    View Slide

  44. Rancher’s Navigation Menu
    Global
    Clusters Apps Users Settings Security Tools
    Roles
    Pod Security Policies
    Authcation
    Catalogs
    Drivers
    Kubernetes Cluster
    Cluster Nodes Storage Projects/Namespaces Member Tools
    Persistent Volumes
    Strage Classes
    Alerts
    Snapshots
    Catalogs
    Notifers
    Logging
    Monitoring
    Every Namespace
    Workloads Apps Resources Namespace Member Tools
    Workloads
    Load Balancing
    Service Discovery
    Volumes
    Piplines
    Certificates
    Config Maps
    Registries
    Secrets
    Alerts
    Catalogs
    Logging
    Monitoring
    Pipeline

    View Slide

  45. Rancher Basic Monitoring
    1.Cluster

    View Slide

  46. Rancher Basic Monitoring
    2.Nodes

    View Slide

  47. 3.Notifers
    Alert notification destination
    Rancher Basic Monitoring

    View Slide

  48. Rancher Basic Monitoring
    4.Alerts
    Default Setting (V2.2.0-rc6)
    etcd
    kube components
    event
    node
    a.Cluster Alert Default

    View Slide

  49. Rancher Basic Monitoring
    Default Setting (V2.2.0-rc6)
    Workload
    Memory ※You need to enable Promethus features.
    b.Project Alert Default

    View Slide

  50. Rancher Basic Logging
    Rancher Linkage Elasticsearch splunk Kafka syslog Fluentd

    View Slide

  51. Rancher Basic DevOps
    Rancher Linkage GitHub GitLab Bitbucket

    View Slide

  52. Rancher Catalog
    1.From Helm
    2.From Library
    In the catalog list, “(from Helm)” is displayed as the official chart of Helm.
    In the catalog list, "(From Library)" is displayed by Chart customized by Rancher Labs
    270 Catalogs (v2.2.1 default / 2019.4)
    30 Catalogs (v2.2.1 default / 2019.4)

    View Slide

  53. Rancher CLI
    Command Result
    apps, [app] Performs operations on catalog applications (i.e. individual Helm charts or Rancher charts).
    catalog Performs operations on catalogs.
    clusters, [cluster] Performs operations on your clusters.
    context Switches between Rancher projects. For an example, see Project Selection.
    inspect [OPTIONS] [RESOURCEID
    RESOURCENAME]
    Displays details about Kubernetes resources or Rancher resources (i.e.: projects and workloads). Specify resources by name or ID.
    kubectl Runs kubectl commands.
    login, [l] Logs into a Rancher Server. For an example, see CLI Authentication.
    namespaces, [namespace] Performs operations on namespaces.
    nodes, [node] Performs operations on nodes.
    projects, [project] Performs operations on projects.
    ps Displays workloads in a project.
    settings, [setting] Shows the current settings for your Rancher Server.
    ssh Connects to one of your cluster nodes using the SSH protocol.
    help, [h] Shows a list of commands or help for one command.
    Commands
    The following commands are available for use in Rancher CLI.

    View Slide

  54. Rancher Market SHAre

    View Slide

  55. KubeCon + CloudNativeCon 2018 China
    Delivering Renewable Energy with Kubernetes
    Wei Zhang, VP Technology, Goldwind Smart Energy &
    Sheng Liang, CEO, Rancher Labs

    View Slide

  56. Service Mesh Enterprise Summit - Rancher Labs & Huawie -
    “technology and products are good only when they can be adopted in
    production by enterprise”
    Rancher Labs will jointly organize the KubeCon Pre-event with CNCF, and launch 2018 China
    Service Mesh Enterprise Summit on 13rd Nov.

    View Slide

  57. Service Mesh Enterprise Summit - Rancher Labs & Huawie -
    “Service Mesh and Istio in the Cloud Native Application Layout”
    by Shannon Williams, Rancher Labs Co-founder and Vice President of Sales
    TOYOTA
    Announced they are connecting 15m vehicles to Kubernetes clusters

    View Slide

  58. Service Mesh Enterprise Summit - Rancher Labs & Huawie -
    20,000 teams are now using Rancher

    View Slide

  59. Service Mesh Enterprise Summit - Rancher Labs & Huawie -
    In China, there is almost no production use of Rancher.
    BANK EDUCATION
    WIND
    POWER

    View Slide

  60. Service Mesh Enterprise Summit - Rancher Labs & Huawie -
    Easy Way to Manage Kubernetes Clusters
    Peng Jiang, Rancher Labs

    View Slide

  61. Service Mesh Enterprise Summit - Rancher Labs & Huawie -
    2019 Rancher’s Events in China
    Rancher Container Day
    2019.5.16 Beijing, China
    Rancher Enterprise Container Innovation Summit
    2019.10.23 Shanghai, China

    View Slide

  62. Rancher In The Future

    View Slide

  63. Kubernetes, Istio, Service Mesh like Docker
    Darren Shepherd
    Co-founder and Chief Architect
    at Rancher Labs, Inc.
    @ibuildthecloud
    https://github.com/rancher/rio
    https://www.slideshare.net/cyberblackvoom/whats-rio-112779732
    My Presentaion Docs
    Rancher Labs New Project “Rio”
    Rancher In The Future

    View Slide

  64. Rancher In The Future
    Phase1:Deliver a full-featured container management platfrom that integrates
    the cloud native technologies and ecosystem
    Phase2:Intorduce multi-cluster management and multi-cluster applications
    Phase3:Expand Kubernetes footprint everywhere(cloud,data center, and edge)
    Sponsored Session: The Journey to Kubernetes Everywhere - Shannon Williams, Rancher Labs
    Presentation Docs : http://bit.ly/k8sday_india_rancher
    Presentation Movie : http://bit.ly/k8sday_india_rancher_movie

    View Slide

  65. Lightweight
    Kubernetes
    Cross-Cluster
    Network
    Connectivity
    for Kubernetes
    Easy to install.
    A binary of less than 40 MB.
    Only 512 MB of RAM required to
    run.

    View Slide

  66. Rancher v2.2.0-rc3 or later
    Support k3s cluster import !!

    View Slide

  67. Information

    View Slide

  68. Docker / Kubernetes / Rancher One Day Training
    2019.4.15 https://eventregist.com/e/cndf2019training
    #rancherjp
    Coupon Code
    rancherjp1000
    #kujiraya
    Coupon Code
    kujiraya1000
    CloudNative Days 2019
    CloudNative Days Tokyo 2019
    OpenStack Days Tokyo 2019
    Toranomon Hills Forum, July 22-23, 2019
    CloudNative Days Kansai 2019
    2019.4.16 https://eventregist.com/e/cndf2019
    We will carry out popular training in JapanContainerDays as well, and we
    will carry out the “limited training to learn Docker / Kubernetes / Rancher
    from the foundation in one day”.
    Let's get training and attend the conference!

    View Slide

  69. Thank you for your attention !!

    View Slide