摘要: 先上代码 定义一个接口 Retriever 两个接口的实现 infra.go ```go package main import ( "fmt" "robot.com/Robot/learngo/testing" //"robot.com/Robot/learngo/infra" ) // ?: S 阅读全文
posted @ 2023-08-05 18:14 robot-Z 阅读(20) 评论(0) 推荐(0) 编辑
摘要: # Deployment 它是专门用来部署应用程序的,能够让应用永不宕机,多用来发布无状态的应用,是 Kubernetes 里最常用也是最有用的一个对象。 ## YAML样板 ``` apiVersion: apps/v1 kind: Deployment metadata: labels: app 阅读全文
posted @ 2023-02-04 22:25 robot-Z 阅读(45) 评论(0) 推荐(0) 编辑
摘要: # github代码 ``` https://github.com/zsjlu/gcr.io_mirror#google-container-registry-mirrorgoogle-container-registry%E9%95%9C%E5%83%8F%E5%8A%A0%E9%80%9F `` 阅读全文
posted @ 2023-02-04 22:08 robot-Z 阅读(181) 评论(0) 推荐(0) 编辑
摘要: echo echo 命令用于唉终端输出字符串或变量提取后的值 echo robot echo $SHELL date date 命令用于显示及设置系统的时间或日期 date # 按照某种格式输出 date "+%Y-%m-%d %H:%M:%S" # 设置系统时间 date -s "20170901 阅读全文
posted @ 2022-12-27 19:30 robot-Z 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 先决条件 先查看是否是RHEL7系统 cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.0 (Maipo) 操作步骤 # 重启系统 reboot # 引导界面,按“e”进入内核编辑界面 # 在linux16开头的这一行 阅读全文
posted @ 2022-12-27 18:53 robot-Z 阅读(183) 评论(0) 推荐(0) 编辑