Giter Site home page Giter Site logo

指令问题 about k8s-tutorial-cn HOT 4 CLOSED

v04007 avatar v04007 commented on July 30, 2024
指令问题

from k8s-tutorial-cn.

Comments (4)

chaseSpace avatar chaseSpace commented on July 30, 2024

提供执行现场截图,以及相关日志,例如kk describe po $POD_ID 的Events部分

from k8s-tutorial-cn.

chaseSpace avatar chaseSpace commented on July 30, 2024

如无后续,issue将在两天后关闭。

from k8s-tutorial-cn.

v04007 avatar v04007 commented on July 30, 2024

kubectl version: v1.28.2

根据文档中的命令: kubectl set image deploy hellok8s-go-http=leigg/hellok8s:v2
执行得到:error: resource(s) were provided, but no name was specified
切换为:kubectl set image deploy hellok8s-go-http hellok8s=leigg/hellok8s:v2
执行得到:deployment.apps/hellok8s-go-http image updated

执行kubectl rollout undo deployment hellok8s-go-http --to-revision=N
执行得到: error: invalid argument "N" for "--to-revision" flag: strconv.ParseInt: parsing "N": invalid syntax
See 'kubectl rollout undo --help' for usage.
N切换为具体版本号执行成功

from k8s-tutorial-cn.

chaseSpace avatar chaseSpace commented on July 30, 2024

感谢反馈,第一处应该是一个命令错误,你切换的是正确的;第二处命令中的N是个代号,执行时需要替换为具体的修订号(已追加说明)。

from k8s-tutorial-cn.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.