当前位置:网站首页>Cross cluster deployment of helm applications using karmada
Cross cluster deployment of helm applications using karmada
2022-06-28 16:07:00 【InfoQ】
background
Deploy Karmada
Deploy Flux
kubectl apply -k github.com/fluxcd/flux2/manifests/crds?ref=main --kubeconfig ~/.kube/karmada.configflux install --kubeconfig ~/.kube/members.config --context member1
flux install --kubeconfig ~/.kube/members.config --context member2Helm release distribution
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: podinfo
spec:
interval: 1m
url: https://stefanprodan.github.io/podinfo apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: podinfo
spec:
interval: 5m
chart:
spec:
chart: podinfo
version: 5.0.3
sourceRef:
kind: HelmRepository
name: podinfoapiVersion: policy.karmada.io/v1alpha1
kind: PropagationPolicy
metadata:
name: helm-repo
spec:
resourceSelectors:
- apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
name: podinfo
placement:
clusterAffinity:
clusterNames:
- member1
- member2apiVersion: policy.karmada.io/v1alpha1
kind: PropagationPolicy
metadata:
name: helm-release
spec:
resourceSelectors:
- apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
name: podinfo
placement:
clusterAffinity:
clusterNames:
- member1
- member2kubectl apply -f ../helm/ --kubeconfig ~/.kube/karmada.confighelmrelease.helm.toolkit.fluxcd.io/podinfo created
helmrepository.source.toolkit.fluxcd.io/podinfo created
propagationpolicy.policy.karmada.io/helm-release created
propagationpolicy.policy.karmada.io/helm-repo createdhelm --kubeconfig ~/.kube/members.config --kube-context member1 list
Customize for a specific cluster Helm application
apiVersion: policy.karmada.io/v1alpha1
kind: OverridePolicy
metadata:
name: example-override
namespace: default
spec:
resourceSelectors:
- apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
name: podinfo
overrideRules:
- targetCluster:
clusterNames:
- member1
overriders:
plaintext:
- path: "/spec/values"
operator: add
value:
replicaCount: 2kubectl apply -f example-override.yaml --kubeconfig ~/.kube/karmada.configoverridepolicy.policy.karmada.io/example-override createdkubectl --kubeconfig ~/.kube/members.config --context member1 get poNAME READY STATUS RESTARTS AGE
podinfo-68979685bc-6wz6s 1/1 Running 0 6m28s
podinfo-68979685bc-dz9f6 1/1 Running 0 7m42sReference documents :
边栏推荐
- 大神详解开源 BUFF 增益攻略丨直播讲座
- The world has embraced Web3.0 one after another, and many countries have clearly begun to seize the initiative
- Change exchange (dynamic planning)
- Opengauss kernel: analysis of SQL parsing process
- ROS knowledge points - definition and use of topic messages
- 如何查询数据库中一个表中的所有数据呢?
- Sample explanation of batch inserting data using MySQL bulkloader
- Analysis of PostgreSQL storage structure
- 字节跳动数据平台技术揭秘:基于 ClickHouse 的复杂查询实现与优化
- 机器学习之深度学习卷积神经网络,实现基于CNN网络的手写字体识别
猜你喜欢

5分钟的时间制作一个反弹球游戏

Installation and use of Jenkins
![[Spock] process non ASCII characters in an identifier](/img/ab/d2cd6802d1e2af009da077ae82bdf8.png)
[Spock] process non ASCII characters in an identifier

What are the most powerful small and medium-sized companies in Beijing?

A new 25K byte from the Department showed me what the ceiling is

薅羊毛的机会了,点个“赚”即有机会赚取高额佣金

10: 00 interview, came out at 10:02, the question is really too

What useful supplier management systems are available

5 minutes to make a bouncing ball game

【高并发基础】MySQL 不同事务隔离级别下的并发隐患及解决方案
随机推荐
MIPS assembly language learning-01-sum of two numbers, environment configuration and how to run
Qt5.5.1 configuring msvc2010 compiler and WinDbg debugger
开源技术交流丨一站式全自动化运维管家ChengYing入门介绍
Talking about open source - Linus and Jim talk about open source in China
Android, eclipse and MySQL upload pictures and get
Qt 界面库
The past and present life of distributed cap theorem
看界面控件DevExpress WinForms如何创建一个虚拟键盘
In depth learning foundation summary
among us私服搭建
QT interface library
Gartner发布当前至2024年的五大隐私趋势
What is the difference between treasury bonds and time deposits
Visual Studio 2010 compilation qt5.6.3
开源大咖说 - Linus 与 Jim 对话中国开源
Focus on the 35 year old Kan: fear is because you don't have the ability to match your age
Sample explanation of batch inserting data using MySQL bulkloader
软件测试员的悲哀竟是...自己的技术能力不能满足大厂要求?
Azure Kinect微软摄像头Unity开发小结
3. caller service call - dapr