The Practical Guide to GitOps-y docker.io And finally, install the Kubernetes packages: apt-get install -y kubelet kubeadm kubectl kubernetes-cni Part 1: Spin up a Kubernetes Cluster eBook 17 4. Initialize the Master node with each other. Install Weave Net by running on the master: kubectl apply -f “https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d ‘\n’)” Confirm that the pod network network is working and that the kube-dns pod is running: kubectl get pods --all-namespaces Once the kube-dns pod is up and running, you can join all of the nodes to form the cluster. Part 1: Spin up a Kubernetes0 码力 | 37 页 | 850.88 KB | 1 年前3
Argo CD 搭配 Kustomize
實作 GitOps 部署 周育緯kustomization.yaml 15 用patch替換dev 使用的image tag 16 Kustomize Comand •kubectl kustomize {放置 kustomization.yaml 的資料夾名稱} •生成替換掉或增加參數的yaml •kubectl kustomize overlay/development 17 18 19 Use generate YAML and and apply on kubernetes •Generate yaml and apply to k8s •kubectl kustomize overlay/development | kubectl apply -f - 20 部署出dev deployment and service env 21 Argo CD 22 •A declarative, GitOps continuous0 码力 | 24 页 | 696.06 KB | 1 年前3
What's new with
GitOps and OpenShiftrepository ○ Synchronization Policy ● Applications can be deployed from Argo CD GUI or CLI (argocd or kubectl or oc) Argo CD - Synchronizing Poll/Push Change in git Pushed to Argo CD Check Sync Status Synchronize │ ├── create-github-status-task.yaml │ ├── deploy-from-source-task.yaml │ └── deploy-using-kubectl-task.yaml ├── 04-templatesandbindings │ ├── dev-cd-deploy-from-master-binding.yaml │ ├── dev unnecessarily ● Unlike templating frameworks, all yaml can be directly applied ● Kustomize is included in kubectl and oc starting in 1.14 oc apply -k apps/myapp/overlays/dev Kustomize - Organization https://kubernetes0 码力 | 34 页 | 2.01 MB | 1 年前3
Zadig 面向开发者的云原生 DevOps 平台GitLab-CI 自动构建打包 Chart (写一堆复杂 的脚本 ) -> -> Rancher 上手动替换 Helm Chart 版本 -> 调试 (使用 kubectl/ 日志系统) 2. 测试流程 合并到 develop -> GitLab-CI 自动构建打包 Chart (还是那堆复杂的脚 本) -> -> Rancher 上手动替换 -> 修改少量配置更新到所有环境 2. 创建环境,维护与环境相关的少量配置 开发 1. Rancher 手动更新服务 2. 调试更新配置 需要打一个 Chart 包 3. 使用 kubectl 登入服务 1. Zadig 工作流自动更新服务 2. Zadig 集成环境更新服务配置 3. 在 Zadig 的图形界面上查看实时日志、调试 测试 1. 测试因为环境不稳定经常受影响 1 一的管理平台。 研发排查问题困难,对于服务进行诊断,每有 一个资源设备都需要给研发单独分配 SSH 权 限,管理成本巨高。 开发 debug 过程需要登录统一的内网主机使 用 Kubectl 操作,权限不可控,风险大。 对于新上项目,面对不同的使用场景,需要创建多 条 Jenkins Job ,配置繁琐,维护负担重。 与 传 统 的 业 务 研 发 不 同 , 电 动 汽0 码力 | 59 页 | 81.43 MB | 1 年前3
Zadig 面向开发者的云原生 DevOps 平台提交代码到 Feature 分支 -> GitLab-CI 自动构建打包 Chart (写一堆复杂的 脚本 )-> -> Rancher 上手动替换 Helm Chart 版本 -> 调试(使用 kubectl/ 日志系统) 2. 测试流程 合并到 develop -> GitLab-CI 自动构建打包 Chart (还是那堆复杂的脚本)- > -> Rancher 上手动替换 Helm Chart 从模板创建服务->修改少量配置更新到所有环境 2. 创建环境,维护与环境相关的少量配置 开发 1. Rancher 手动更新服务 2. 调试更新配置需要打一个 Chart 包 3. 使用 kubectl 登入服务 1. Zadig 工作流自动更新服务 2. Zadig 集成环境更新服务配置 3. 在Zadig的图形界面上查看实时日志、调试 测试 1. 测试因为环境不稳定经常受影响 1. 上线资源设备只能人工确认,资源设备没有统 一的管理平台。 研发排查问题困难,对于服务进行诊断,每有 一个资源设备都需要给研发单独分配 SSH 权 限,管理成本巨高。 开发 debug 过程需要登录统一的内网主机使 用 Kubectl 操作,权限不可控,风险大。 对于新上项目,面对不同的使用场景,需要创建多 条 Jenkins Job,配置繁琐,维护负担重。 与 传 统 的 业 务 研 发 不 同 , 电 动 汽 车 领0 码力 | 59 页 | 23.57 MB | 1 年前3
The Path to GitOpsNow let’s do some customization. To render the YAML output for the dev environ- ment, run: $ kubectl apply -k apps/myapp/overlays/dev The preceding command takes the base YAML and overlays what’s “point of entry” to onboard applications. An administrator bootstraps a cluster by running: $ kubectl apply -k bootstrap/overlays/default This command loads in all the configurations and deploys the deploys the application, an example deployment into the dev environment would look like this: $ kubectl apply -k deploy/overlays/dev The dev overlay consumes all the YAML in base and overlay the deltas0 码力 | 45 页 | 1.09 MB | 1 年前3
GitOps 2.0 The Future of DevOps Ebookcommit or opening a pull request Specifically for Kubernetes, GitOps says that you must not use `kubectl` to change the cluster state in an ad hoc manner. Instead, the desired state should be defined within0 码力 | 29 页 | 1.61 MB | 1 年前3
共 7 条
- 1













