4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【kustomizeで】「できる」って書いてあるのにできないときはバージョンを疑えって言われたでしょ!【ハマった】

4
Posted at

カップラーメンができるまでの間に書きました。

ある日の要約

  1. kubernetesのマニフェストファイルをきれいにするためkustomizeを触っていた。
  2. 「へー、kubectlコマンドに取り込まれてるんだ。バイナリ入れなくてもいいね」
  3. 何回やってもなんかやっても kubectl kustomize . が通らないよ。。(N時間経過)
  4. 試しに、GitHubから最新版を落として実験
    5. $ curl --output - -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv3.5.3/kustomize_v3.5.3_linux_amd64.tar.gz | tar xzvf - -C /tmp
  5. あっさりkustomize build .が通って悲しい気持ちになる

カップラーメンができるまでの間に調べた

EKSで使うkubectlはAmazon EKSが提供しているものを使う
cf. https://docs.aws.amazon.com/ja_jp/eks/latest/userguide/install-kubectl.html

私が使っていたのはKubernetes 1.14に対応するバイナリ

$ kubectl version                                                                                                                                              
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.0", GitCommit:"2bd9643cee5b3b3a5ecbd3af49d09018f0773c77", GitTreeState:"clean", BuildDate:"2019-09-19T13:57:45Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.9-eks-c0eccc", GitCommit:"c0eccca51d7500bb03b2f163dd8d534ffeb2f7a2", GitTreeState:"clean", BuildDate:"2019-12-22T23:14:11Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"linux/amd64"}

kustomizeは1.14より統合された。
cf. https://kubernetes.io/blog/2019/03/25/kubernetes-1-14-release-announcement/

一方でkustomizeはkustomizeで継続的に開発されている
cf. https://github.com/kubernetes-sigs/kustomize/releases

ドキュメントのもそれに従って更新されているので、古いビルドに基づくkustomizeでは動かなかった模様。

...

最新版で試しましょう。

4
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?