检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
clusterbindings DeleteClusterBinding 服务预上架 file PreRelease 服务上架 service ApproveService 删除服务 service DeleteService 删除指定服务版本 version DeleteVersionPackage
category: Database apiVersion: v2 appVersion: 3.4.14 dependencies: - name: common repository: https://charts.bitnami.com/bitnami tags:
支持控件查询指定资源对象,目前支持configmap和secret。 配置示例: - path: k8sResource_secret description: k8sResource_secret displayName: k8sResource_secret x-descriptors:
(optional) - ImportValues holds the mapping of source values to parent key to be imported. Each item can be a string or pair of child/parent sublist
"s3": { "path": "<full-s3-path>", "awsSecret": "<aws-secret>"' } } }, { "apiVersion": "etcd.database.coreos
COPY bin/manager / RUN chmod ug+x /manager WORKDIR / 构建容器镜像命令如下: $ make && make docker-build IMG=hwfka-operator:v0.0.1 父主题: 制作镜像
restartPolicy: Always imagePullSecrets: - name: default-secret 父主题: 约束与说明
state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting
=3 详细使用方法参见:CRD Validation。每次修改API定义后,需要执行命令自动重新生成代码和CRD: $ make generate $ make manifests 父主题: 实现Operator
PodManagementPolicy: appsv1.ParallelPodManagement, UpdateStrategy: appsv1.StatefulSetUpdateStrategy{ Type: appsv1.RollingUpdateStatefulSetStrategyType
controllers/hwfka_controller.go Update dependencies: go mod tidy Running make: make generate go: creating new go.mod: module tmp Downloading sigs.k8s
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions
执行如下命令,查询OSC插件部署helm资源。 kubectl get secret -nosc-oc 执行如下命令,删除OSC服务插件secret资源。 kubectl delete secret -nosc-oc sh.helm.release.v1.{cceaddon}-operator-chef
对于聚合条件为pod的,需要设置为pod。 selectedMetrics 指标数组 string数组 否 与groupLabel配套,用于确认groupLabel指定的key值可以通过哪些指标获取全部value。 title 监控名 string 否 监控图显示名称,长度不超过64字节 expr 监控语句 string
crd: hwfkas.osctest.huawei.com logPaths: - /opt/cmak-3.0.0.5/logs 父主题: 对接运维能力(可选)
安装Controller 安装 kustomize 基于模板生成YAML文件,下载kustomize二进制压缩包:https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v3.8.1/kustomize_v3
io/v1 kind: redis spec: global: imageRegistry: "" imagePullSecrets: [] clusterDomain: cluster.local resources: limits: {}
create api 创建Operator脚手架工程,目录结构如下: hwfka-operator/ ├── Dockerfile ├── Makefile ├── PROJECT ├── config │ ├── default │ │ └── ... │ ├── manager
// 为指定命名空间和名称的 secret 设置 owner,返回 secret func (k *K8sClient) SetSecretOwner(cr *oscv1.Kafka, secretName string) (*corev1.Secret, error) { ctx
# 生成 api/v1/zz_generated.deepcopy.go make generate # 生成 config/crd/bases 和 config/rbac/role.yaml make manifests 该步骤将根据API定义自动生成CRD和RBAC。 父主题: