当前位置: 首页 > news >正文

网站标题有特殊符号代码生成器app下载手机版

网站标题有特殊符号,代码生成器app下载手机版,全立体网站建设,南昌知名网站建设公司简介#xff1a; kn 是 Knative 命令行操作客户端。 通过 kn 可以方便的操作Knative 相关的资源。 安装 Kn 可以通过官方获取对应的 Kn 二进制 • macOS • Linux • Windows kn 会与 kubectl 使用同样的config 文件#xff0c;默认使用 $HOME/.kube/config 服务管理 使用… 简介 kn 是 Knative 命令行操作客户端。 通过 kn 可以方便的操作Knative 相关的资源。 安装 Kn 可以通过官方获取对应的 Kn 二进制 • macOS • Linux • Windows kn 会与 kubectl 使用同样的config 文件默认使用 $HOME/.kube/config 服务管理 使用 Kn 命令可以执行 list, create, delete, apply, 和 update 操作Knative services. 创建服务 使用 create 命令: kn service create 示例 $ kn service create helloworld-go --env TARGETknative --image registry.cn-hangzhou.aliyuncs.com/knative-sample/helloworld-go:73fbdd56 yuncs.com/knative-sample/helloworld-go:73fbdd56 Creating service helloworld-go in namespace default:0.116s The Route is still working to reflect the latest desired specification.0.216s Configuration helloworld-go is waiting for a Revision to become ready.3.075s ...3.149s Ingress has not yet been reconciled.3.299s ...3.762s Ready to serve. Service helloworld-go created to latest revision helloworld-go-pyqqz-1 is available at URL: http://helloworld-go.default.example.com 使用 apply 命令 kn service apply 示例 # Create an initial service with using kn service apply, if the service has not # been already created kn service apply s0 --image registry.cn-hangzhou.aliyuncs.com/knative-sample/helloworld-go:73fbdd56 # Apply the service again which is a no-operation if none of the options changed kn service apply s0 --image registry.cn-hangzhou.aliyuncs.com/knative-sample/helloworld-go:73fbdd56 # Add an environment variable to your service. Note, that you have to always fully # specify all parameters (in contrast to kn service update) kn service apply s0 --image registry.cn-hangzhou.aliyuncs.com/knative-sample/helloworld-go:73fbdd56 --env TARGETknative # Read the service declaration from a file kn service apply s0 --filename my-svc.yml 查看服务 查询服务列表示例 kn service list NAME URL LATEST AGE CONDITIONS READY REASON helloworld-go http://helloworld-go.default.example.com helloworld-go-pyqqz-1 55s 3 OK / 3 True 查询服务详情示例 kn service describe helloworld-go Name: helloworld-go Namespace: default Age: 14m URL: http://helloworld-go.default.example.com Revisions:100% latest (helloworld-go-cvclp-2) [2](9m)Image: registry.cn-hangzhou.aliyuncs.com/knative-sample/helloworld-go:160e4dc8 (pinned to 032b80) Conditions:OK TYPE AGE REASON Ready 9m ConfigurationsReady 9m RoutesReady 9m 或者以 yaml 方式展示详情 $ kn service describe helloworld-go -oyaml apiVersion: serving.knative.dev/v1 kind: Service metadata:annotations:serving.knative.dev/creator: 1041208914252405-1606806762serving.knative.dev/lastModifier: 1041208914252405-1606806762creationTimestamp: 2020-12-09T06:07:41Zgeneration: 2name: helloworld-gonamespace: defaultresourceVersion: 39555635selfLink: /apis/serving.knative.dev/v1/namespaces/default/services/helloworld-gouid: 763e8214-7c2d-476c-bd88-40b32a30597d spec:template:metadata:annotations:client.knative.dev/user-image: registry.cn-hangzhou.aliyuncs.com/knative-sample/helloworld-go:160e4dc8creationTimestamp: nullname: helloworld-go-cvclp-2spec:containerConcurrency: 0containers:- env:- name: TARGETvalue: knativeimage: registry.cn-hangzhou.aliyuncs.com/knative-sample/helloworld-go:160e4dc8name: user-containerreadinessProbe:successThreshold: 1tcpSocket:port: 0resources: {}timeoutSeconds: 300traffic:- latestRevision: truepercent: 100 status:address:url: http://helloworld-go.default.svc.cluster.localconditions:- lastTransitionTime: 2020-12-09T06:13:33Zstatus: Truetype: ConfigurationsReady- lastTransitionTime: 2020-12-09T06:13:34Zstatus: Truetype: Ready- lastTransitionTime: 2020-12-09T06:13:34Zstatus: Truetype: RoutesReadylatestCreatedRevisionName: helloworld-go-cvclp-2latestReadyRevisionName: helloworld-go-cvclp-2observedGeneration: 2traffic:- latestRevision: truepercent: 100revisionName: helloworld-go-cvclp-2url: http://helloworld-go.default.example.com 更新服务创建新版本 使用 update 命令 kn service update NAME 示例 $ kn service update helloworld-go --image registry.cn-hangzhou.aliyuncs.com/knative-sample/helloworld-go:160e4dc8 Updating Service helloworld-go in namespace default:3.609s Traffic is not yet migrated to the latest revision.3.631s Ingress has not yet been reconciled.4.066s Ready to serve. Service helloworld-go updated to latest revision helloworld-go-cvclp-2 is available at URL: http://helloworld-go.default.example.com 使用 apply 也可进行更新服务 kn service apply # Add an environment variable to your service. Note, that you have to always fully # specify all parameters (in contrast to kn service update) kn service apply s0 --image registry.cn-hangzhou.aliyuncs.com/knative-sample/helloworld-go:160e4dc8 --env TARGETknative 删除服务 示例 kn service delete helloworld-go 版本管理 查看版本 kn revision list NAME SERVICE TRAFFIC TAGS GENERATION AGE CONDITIONS READY REASON helloworld-go-cvclp-2 helloworld-go 100% 2 40s 4 OK / 4 True helloworld-go-pyqqz-1 helloworld-go 1 6m29s 3 OK / 4 True 查看版本详情 $ kn revision describe helloworld-go-cvclp-2 Name: helloworld-go-cvclp-2 Namespace: default Age: 3m Image: registry.cn-hangzhou.aliyuncs.com/knative-sample/helloworld-go:160e4dc8 (pinned to 032b80) Env: TARGETknative Service: helloworld-go Conditions:OK TYPE AGE REASON Ready 3m ContainerHealthy 3m ResourcesAvailable 3mI Active 2m NoTraffic 删除版本 $ kn revision delete helloworld-go-pyqqz-1 Revision helloworld-go-pyqqz-1 deleted in namespace default. 其它 除了上面介绍的 service、revision。 Kn 还支持如下的资源操作, 有兴趣的可以自己试用一下。 • kn broker - 管理事件 brokers • kn channel - 管理事件 channels • kn route - 管理服务路由 routes • kn source - 管理事件源 sources • kn trigger - 管理事件 triggers 作者元毅 原文链接 本文为阿里云原创内容未经允许不得转载
http://wiki.neutronadmin.com/news/55910/

相关文章:

  • 国外有哪些优秀的网站开发板推荐
  • 网站建设项目需求分析网站导航如何用响应式做
  • 网站建设不备案后果wordpress请求接口数据库
  • 盘锦网站建设公司石家庄房产网最新楼盘
  • 哈尔滨门户网站设计报价wordpress外链自动保存
  • ps模板下载网站oa网站建设价格
  • 如何创建网站难吗最新网站建设视频
  • 集团公司网站建设求网站资源懂的2021
  • 住房城市乡建设部网站深圳市深度设计咨询有限公司
  • 营销型品牌网站建设价格哪些网站适合推广
  • 网站开发项目的需求分析湘阴网站建设
  • 网站建设课程ppt查询seo
  • 免费个人网站建设直播网站开发要多久
  • 国外创意网站欣赏怎么申请网站空间
  • 国外外贸网站在哪个网站做游戏视频好
  • 网站建设问题表房源网
  • 免费海报素材网站大全网站开发公司需要投入什么资源
  • 企业门户网站用户类型window做网站的软件下载
  • 互联网广告营销公司昆山做网站优化
  • 海兴县网站建设价格无极招聘信息网
  • 佛山新网站建设方案网络营销理论包括哪些
  • 如何在淘宝上接单网站建设短视频制作app
  • 加强信息管理 维护网站建设重庆市建设工程招标投标交易信息网
  • 自己做音乐网站wordpress最新文章
  • 上海有限公司网络seo优化
  • 深圳网站制作联系电话聊城做wap网站公司
  • 怎么创建网站 免费的wordpress 白屏
  • 如何进行公司网站的建设天津网站建设公司哪家好
  • 微信公众号设计网站柳州网站网站建设
  • 网站优化可以做哪些优化西安手机商城网站建设