zoukankan      html  css  js  c++  java
  • Traefikingress

    [root@k8s-master-01 traefik]# git clone https://github.com/containous/traefik.git
    (一般只需要两个文件:deployment和rbac。)
    (由于在Kubernets1.6之后启用了RBAC鉴权机制,所以需配置ClusterRole以及ClusterRoleBinding来对api-server的进行相应权限的鉴权。)
    (rbac这个文件呢就是创建ClusterRole和ClusterRoleBinding的。)
    [root@k8s-master-01 TrIngress]# kubectl apply -f traefik-rbac.yaml clusterrole.rbac.authorization.k8s.io/traefik-ingress-controller created clusterrolebinding.rbac.authorization.k8s.io/traefik-ingress-controller created [root@k8s-master-01 TrIngress]# kubectl get clusterrolebinding NAME AGE traefik-ingress-controller 29s [root@k8s-master-01 TrIngress]# kubectl get clusterrole NAME AGE traefik-ingress-controller 67s
    [root@k8s-master-01 TrIngress]# kubectl apply -f traefik-deployment.yaml
    serviceaccount/traefik-ingress-controller created
    deployment.extensions/traefik-ingress-controller created
    service/traefik-ingress-service created
    [root@k8s-master-01 ~]# kubectl get pod --all-namespaces -owide
    NAMESPACE     NAME                                    READY   STATUS    RESTARTS   AGE   IP            NODE            NOMINATED NODE
    kube-system   traefik-ingress-controller-5ddql        1/1     Running   6          39h   10.10.0.135   k8s-node-02     <none>
    kube-system   traefik-ingress-controller-x6xrx        1/1     Running   0          39h   10.10.0.190   k8s-node-01     <none>

    (参考链接:http://blog.51cto.com/goome/2151353。)

    到这就算完成了,下一步我们看看该怎样使用它。

  • 相关阅读:
    暑假训练第三周总结
    UVA 1212 Duopoly
    UVA 12125 March of the Penguins
    UVA 1345 Jamie's Contact Groups
    UVA 10806 Dijkstra, Dijkstra.
    暑假训练第一周总结
    HDU 5792 World is Exploding
    HDU 5791 Two
    HDU 5787 K-wolf Number
    Sql With as 用法
  • 原文地址:https://www.cnblogs.com/fengzhihai/p/10016216.html
Copyright © 2011-2022 走看看