how to deploy k8s with konvoy on centos7.6ΒΆ

  1. set system proxy

    echo export all_proxy=http://192.168.0.4:1080 >> /etc/profile
    source /etc/profile
    
  2. install docker-ce and set docker proxy

    rm -rf /etc/yum.repos.d/*
    yum reinstall http://mirror.centos.org/centos/7.6.1810/os/x86_64/Packages/centos-release-7-6.1810.2.el7.centos.x86_64.rpm -y
    yum reinstall epel-release -y
    yum install yum-utils -y
    yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    yum install docker-ce -y
    sed -i '/\[Service\]/a\\Environment=HTTP_PROXY=http://192.168.0.4:1080' /usr/lib/systemd/system/docker.service
    systemctl daemon-reload && systemctl start docker && systemctl enable docker
    
  3. install konvoy on a developer machine

    download konvoy from https://d2iq.com/solutions/ksphere/konvoy, we can request free trial.

    curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.15.2/bin/linux/amd64/kubectl
    chmod +x konvoy kubectl
    mv konvoy kubectl /usr/bin/
    konvoy init --provisioner=docker [--cluster-name development]
    

    after edit cluster.yaml to specify HTTP/HTTPS proxies, run konvoy up.

    konvoy up
    

    at last, you should see information similar to this:

    Kubernetes cluster and addons deployed successfully!
    
    Run `konvoy apply kubeconfig` to update kubectl credentials.
    
    Navigate to the URL below to access various services running in the cluster.
      https://172.17.1.200/ops/landing
    And login using the credentials below.
      Username: dream_chenshi
      Password: oDiqvxqk9SaUcrRiI3ns3PluVTlhPhhhRmkZjsjw06AX15lZEPmlCi1hqjC5GW5w
    
    If the cluster was recently created, the dashboard and services may take a few minutes to be accessible.