suzuki-shunsuke / issue

MIT License
4 stars 0 forks source link

Argo Rollouts - Nginx Ingress による Traffic management を試す #51

Open suzuki-shunsuke opened 4 years ago

suzuki-shunsuke commented 4 years ago

Argo Rollouts v0.8.2

まずは Argo Rollouts をクラスタレベルにインストールする。

今回は kind を使う。

$ kind create cluster --name rollout
$ kubectl create namespace argo-rollouts
$ kubectl apply -n argo-rollouts -f https://raw.githubusercontent.com/argoproj/argo-rollouts/stable/manifests/install.yaml

kind に Nginx Ingress Controller をインストールする。

https://kind.sigs.k8s.io/docs/user/ingress/#ingress-nginx

$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/kind/deploy.yaml

作り方がだめっぽい。

https://kind.sigs.k8s.io/docs/user/ingress/#create-cluster

cluster.yaml

---
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
  kubeadmConfigPatches:
  - |
    kind: InitConfiguration
    nodeRegistration:
      kubeletExtraArgs:
        node-labels: "ingress-ready=true"
  extraPortMappings:
  - containerPort: 80
    hostPort: 80
    protocol: TCP
  - containerPort: 443
    hostPort: 443
    protocol: TCP
$ kind create cluster --name rollout --config cluster.yaml
suzuki-shunsuke commented 4 years ago

Argo Rollouts の Controller が warning 吐いてる

argo-rollouts-6fd5cc7bd9-rh7j4 argo-rollouts time="2020-05-30T05:57:38Z" level=info msg="Starting watch on resource 'virtualservices'"
argo-rollouts-6fd5cc7bd9-rh7j4 argo-rollouts time="2020-05-30T05:57:38Z" level=warning msg="Error with watch: the server could not find the requested resource"