zisefeizhu

k8s多集群配置管理平台

临时集群特性


模拟生产环境

整体环境说明

内网:10.17.1.44

[root@localhost account-server]# kubectl get nodes
NAME        STATUS   ROLES    AGE   VERSION
localhost   Ready    master   25h   v1.17.5
[root@localhost account-server]# kubectl get pods -A
NAMESPACE           NAME                                                       READY   STATUS    RESTARTS   AGE
cattle-system       cattle-cluster-agent-689f8dcc64-7slpk                      1/1     Running   0          78m
cattle-system       cattle-node-agent-7lndv                                    1/1     Running   0          78m
ingress-nginx       nginx-ingress-controller-74879f74c6-jdzx9                  1/1     Running   0          24h
kong                ingress-kong-d7b5d68f4-j6tsx                               2/2     Running   2          25h
kube-system         calico-kube-controllers-69cb4d4df7-447m5                   1/1     Running   0          25h
kube-system         calico-node-7cb2w                                          1/1     Running   0          25h
kube-system         coredns-9d85f5447-x5l4c                                    1/1     Running   0          25h
kube-system         coredns-9d85f5447-zqgh7                                    1/1     Running   0          25h
kube-system         etcd-localhost                                             1/1     Running   0          25h
kube-system         kube-apiserver-localhost                                   1/1     Running   0          25h
kube-system         kube-controller-manager-localhost                          1/1     Running   0          25h
kube-system         kube-proxy-gdtdt                                           1/1     Running   0          25h
kube-system         kube-scheduler-localhost                                   1/1     Running   0          25h
kube-system         metrics-server-6fcdc7bddc-ggsnm                            1/1     Running   0          25h

myaliyun: 47.1x6.x9.1x6

rancher 部署于此节点

[root@zisefeizhu ~]# docker run -d --restart=unless-stopped \
    -p 80:80 -p 443:443 \
    rancher/rancher:latest
[root@zisefeizhu ~]# free -h
              total        used        free      shared  buff/cache   available
Mem:           3.7G        1.1G        320M        640K        2.3G        2.3G
Swap:            0B          0B          0B
[root@zisefeizhu ~]# docker ps 
CONTAINER ID        IMAGE                    COMMAND             CREATED             STATUS              PORTS                                      NAMES
87aeb7e4a262        rancher/rancher:latest   "entrypoint.sh"     2 hours ago         Up 2 hours          0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   angry_visvesvaraya

临时环境(模拟生产):如上图

[root@mobanji .kube]# kubectl get pods -A
NAMESPACE       NAME                                                   READY   STATUS      RESTARTS   AGE
arms-prom       arms-prometheus-ack-arms-prometheus-7b4d578f86-ff824   1/1     Running     0          9m26s
arms-prom       kube-state-metrics-864b9c5857-ljb6l                    1/1     Running     0          9m42s
arms-prom       node-exporter-6ttg5                                    2/2     Running     0          9m42s
arms-prom       node-exporter-rz7rr                                    2/2     Running     0          9m42s
arms-prom       node-exporter-t45zj                                    2/2     Running     0          9m42s
kube-system     ack-node-problem-detector-daemonset-2r9bg              1/1     Running     0          9m14s
kube-system     ack-node-problem-detector-daemonset-mjk4k              1/1     Running     0          9m15s
kube-system     ack-node-problem-detector-daemonset-t94p4              1/1     Running     0          9m13s
kube-system     ack-node-problem-detector-eventer-6cb57ffb68-gl5n5     1/1     Running     0          9m44s
kube-system     alibaba-log-controller-795d7486f8-jrcv2                1/1     Running     2          9m45s
kube-system     alicloud-application-controller-bc84954fb-z5dq9        1/1     Running     0          9m45s
kube-system     alicloud-monitor-controller-7c8c5485f4-xdrdd           1/1     Running     0          9m45s
kube-system     aliyun-acr-credential-helper-59b59477df-p7vxc          1/1     Running     0          9m46s
kube-system     coredns-79989b94b6-47vll                               1/1     Running     0          9m46s
kube-system     coredns-79989b94b6-dqpjm                               1/1     Running     0          9m46s
kube-system     csi-plugin-2kjc9                                       9/9     Running     0          9m45s
kube-system     csi-plugin-5lt7b                                       9/9     Running     0          9m45s
kube-system     csi-plugin-px52m                                       9/9     Running     0          9m45s
kube-system     csi-provisioner-56d7fb44b6-6czqx                       8/8     Running     0          9m45s
kube-system     csi-provisioner-56d7fb44b6-jqsrt                       8/8     Running     1          9m45s
kube-system     kube-eventer-init-mv2vj                                0/1     Completed   0          9m44s
kube-system     kube-flannel-ds-4xbhr                                  1/1     Running     0          9m46s
kube-system     kube-flannel-ds-mfg7m                                  1/1     Running     0          9m46s
kube-system     kube-flannel-ds-wnrp2                                  1/1     Running     0          9m46s
kube-system     kube-proxy-worker-44tkt                                1/1     Running     0          9m45s
kube-system     kube-proxy-worker-nw2g6                                1/1     Running     0          9m45s
kube-system     kube-proxy-worker-s78vl                                1/1     Running     0          9m45s
kube-system     logtail-ds-67lkm                                       1/1     Running     0          9m45s
kube-system     logtail-ds-68fdz                                       1/1     Running     0          9m45s
kube-system     logtail-ds-bkntm                                       1/1     Running     0          9m45s
kube-system     metrics-server-f88f9b8d8-l9zl4                         1/1     Running     0          9m46s
kube-system     nginx-ingress-controller-758cdc676c-k8ffj              1/1     Running     0          9m46s
kube-system     nginx-ingress-controller-758cdc676c-pxzxd              1/1     Running     0          9m46s

测试点

可行性验证

在临时环境上部署rancher 并同时管控临时环境和内网环境



分类:

技术点:

相关文章:

  • 2021-07-20
  • 2021-01-31
  • 2021-08-03
  • 2021-08-21
  • 2021-08-13
  • 2021-11-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2022-01-23
  • 2021-09-06
相关资源
相似解决方案