我有一个私有的图像注册表,它可以工作,,,,现在我想使用它,,我的deployment.yaml
api版本:扩展/v1beta1
kind: Deployment
metadata:
name: {{ template "mychart.fullname" . }}
spec:
replicas: {{ .Values.replicaCount }}
template:
metadata:
labels:
app: {{ template "mychart.name" . }}
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}/ssh"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: {{ .Values.service.internalPort }}
imagePullSecrets:
- name: "{{ .Values.imageCredentials }}"
和我的价值观.yaml
副本数:1
image:
repository: registry.yoy.online
pullPolicy: IfNotPresent
service:
name: ssh
type: NodePort
externalPort: 31000
internalPort: 2222
imageCredentials:
registry: registry.yoy.online
username: tesing
password: tesing
但它失败了,我确信有一些错误,