nacos-k8s
nacos-k8s copied to clipboard
operator 的 nacos_cluster_mysql.yaml 中设置 imagePullSecrets
apiVersion: nacos.io/v1alpha1
kind: Nacos
metadata:
name: nacos
#namespace: nacos-test
spec:
type: cluster
image: xxx.xxx.xxx.com/xxx/nacos/nacos-server:v2.0.3
imagePullSecrets:
- name: default-secret
replicas: 3
resources:
requests:
cpu: 100m
memory: 512Mi
limits:
cpu: 1
memory: 2Gi
mysqlInitImage: "registry.cn-hangzhou.aliyuncs.com/choerodon-tools/mysql-client:10.2.15-r0"
database:
type: mysql
mysqlHost: mysql.nacos-test.svc.cluster.local
mysqlDb: nacos
mysqlUser: root
mysqlPort: "3306"
mysqlPassword: "xxxxxxxx"
config: |
management.endpoints.web.exposure.include=*
按上面这样设置 imagePullSecrets 没有用。请问是怎么设置的?
这个pr可以解决该问题 https://github.com/nacos-group/nacos-k8s/pull/305
apiVersion: nacos.io/v1alpha1
kind: Nacos
metadata:
name: nacos
spec:
...
k8sWrapper:
PodSpec:
imagePullSecrets:
- name: myregistrykey
这个pr可以解决该问题 #305
apiVersion: nacos.io/v1alpha1 kind: Nacos metadata: name: nacos spec: ... k8sWrapper: PodSpec: imagePullSecrets: - name: myregistrykey
你好,为什么我按照这个方法设置了依然不生效呢