12 2021 档案
[AWS Devops]CodeBuild ----buildspec.yaml
摘要:https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html The buildspec.yaml synx version: 0.2 run-as: Linux-user-name env: shell: sh 阅读全文
posted @ 2021-12-28 16:23 吃鱼高手 阅读(531) 评论(0) 推荐(0)
[AWS Devopsl]Codecommit-notification and trigger
摘要:https://docs.aws.amazon.com/codecommit/latest/userguide/notification-rule-create.html 或者用命令行工具生成notificaiton rule aws codestar-notifications create-no 阅读全文
posted @ 2021-12-27 17:01 吃鱼高手 阅读(39) 评论(0) 推荐(0)
[AWS Devopsl]Codecommit-securing repository and branches
摘要:The way to secure repository and branches: create group and add policy for the permission of the group 1.Create a junior group 2.Under permissions tab 阅读全文
posted @ 2021-12-27 16:00 吃鱼高手 阅读(39) 评论(0) 推荐(0)
[AWS Devops]Codecommit-branches and pull requests
摘要:如下图所示: 步骤1 在本地新建一个branch,名字为my-feature, 并且切换到这个branch 步骤2 查看my-feature 这个branch的状态 步骤3 新改动的文件批量加入本地staged 步骤4 commit新add的文件到本地仓库 步骤5 push commit的文件到远程 阅读全文
posted @ 2021-12-27 14:17 吃鱼高手 阅读(93) 评论(0) 推荐(0)
[AWS Devops]Codecommit-clone, add, commit, push
摘要:1.Git clone 2.Git add(can be single file or git add . --all the files) 3.Git commit -m “message” 4.Git push 阅读全文
posted @ 2021-12-27 11:16 吃鱼高手 阅读(34) 评论(0) 推荐(0)
[AWS Devops]Codecommit-first Repo and https connection
摘要:Codecommit is a way to create code repository and commit code like github The steps to create a CodeCommit 1. Create respository in Code commit servic 阅读全文
posted @ 2021-12-27 10:48 吃鱼高手 阅读(39) 评论(0) 推荐(0)
Dockerfile之onbuld指令
摘要:参考这篇博文: https://www.cnblogs.com/51kata/p/5265107.html 以下内容来自上面的博文: ONBUILD指令可以为镜像添加触发器。其参数是任意一个Dockerfile 指令。 当我们在一个Dockerfile文件中加上ONBUILD指令,该指令对利用该Do 阅读全文
posted @ 2021-12-22 10:32 吃鱼高手 阅读(108) 评论(0) 推荐(0)
Docker构建nodejs镜像
摘要:步骤: 1.创建Dockerfile FROM node:10-alpine #基镜像 RUN mkdir -p /src/app #构建镜像的过程中run mkdir -p /src/app命令来创建/src/app文件夹 WORKDIR /src/app #将/src/app镜像设置为工作目录 阅读全文
posted @ 2021-12-21 17:35 吃鱼高手 阅读(1738) 评论(0) 推荐(0)
NFS, PV, PVC练习
摘要:容器内的文件夹与外面的文件映射的方式有emptydir, hostpath, emptydir与pod的生命周期一样,pod重启后emptydir会消失 hostpath可以永久保存, 但一旦pod被调度到其他节点,hostpath也不可再用 持久性存储:NFS, PV, PVC 现在先来生成NFS 阅读全文
posted @ 2021-12-14 17:02 吃鱼高手 阅读(111) 评论(0) 推荐(0)
ingress和ingress rules
摘要:ingress.yaml apiVersion: v1 kind: Namespace metadata: name: nginx-ingress apiVersion: v1 kind: Secret metadata: name: default-server-secret namespace: 阅读全文
posted @ 2021-12-12 19:04 吃鱼高手 阅读(326) 评论(0) 推荐(0)
kubectl get 资源名 -o go-template的用法
摘要:kubect get 资源名 -o go-template可以用来获取资源里的某个属性值。 在前一篇文章里有两处用到了go-template,以这两处为例子,来说明go-template的用法 第一处,从kubectl get services/webapp1-clusterip-targetpor 阅读全文
posted @ 2021-12-10 15:43 吃鱼高手 阅读(953) 评论(0) 推荐(0)
Service的几种发布方式
摘要:Service的发布方式主要有四种: Cluster IP, NodePort, external IP, LoadBalancer 1. 先来看看Cluster IP, 1)cluster_ip.yaml, 在此yaml文件中,service的yaml里没有定义任何type,那么就用默认的clus 阅读全文
posted @ 2021-12-10 11:22 吃鱼高手 阅读(208) 评论(0) 推荐(0)
Deploy Guestbook example app
摘要:1.准备文件 frentend-controller.yaml apiVersion: v1 kind: ReplicationController metadata: name: frontend labels: name: frontend spec: replicas: 3 selector: 阅读全文
posted @ 2021-12-09 16:14 吃鱼高手 阅读(31) 评论(0) 推荐(0)
kubectl生成deployment和expose service
摘要:https://www.katacoda.com/courses/kubernetes/kubectl-run-containers 来生成deployment和service吧 用命令生成deployment kubectl create deployment http --image=katac 阅读全文
posted @ 2021-12-09 11:50 吃鱼高手 阅读(2570) 评论(0) 推荐(1)
kubeadm init后发生了什么
摘要:来看看kubeadm init后发生了什么 Master上执行命令: kubeadm init --token=102952.1a7dd4cc8d1f4cc5 --kubernetes-version $(kubeadm version -o short) 屏幕上打印出的日志: [init] Usi 阅读全文
posted @ 2021-12-07 14:03 吃鱼高手 阅读(287) 评论(0) 推荐(0)
Kubernetes练习站
摘要:自学Kubernetes,没有练习环境,指路 https://www.katacoda.com/courses/kubernetes/getting-started-with-kubeadm 有很多可以用来学习的scenarios, 只是k8s的版本比较低,但仅用来练习也够了 可以单node 集群, 阅读全文
posted @ 2021-12-02 16:09 吃鱼高手 阅读(972) 评论(0) 推荐(0)