Difference between revisions of "Spec.imagePullSecrets"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  
  {{imagePullSecrets ex}}
+
  {{imagepullsecrets ex}}
  
  apiVersion: v1
+
 
[[kind: Pod]]
+
 
metadata:
+
  Error: INSTALLATION FAILED: 1 error occurred:
  name: private-reg
+
* Deployment in version "v1" cannot be handled as a Deployment: json: cannot unmarshal string into Go struct field
  [[spec]]:
+
  PodSpec.spec.template.spec.imagePullSecrets of type v1.LocalObjectReference
  containers:
+
 
  - name: private-reg-container
+
Solution: imagePullSecrets: [{ name: yourSecret }]
    image: <your-private-image>
 
  imagePullSecrets:
 
  - name: regcred
 
  
  
Line 18: Line 15:
 
== Related ==
 
== Related ==
 
* [[imagePullSecrets:]]
 
* [[imagePullSecrets:]]
* [[Pull an Image from a Private Registry]]
+
* [[Pull an Image from a Private Registry in Kubernetes]]
  
 
== See also ==
 
== See also ==
 
* {{K8s secrets}}
 
* {{K8s secrets}}
 
* {{kind: Pod}}
 
* {{kind: Pod}}

Latest revision as of 05:40, 18 July 2024

 apiVersion: v1
kind: Pod
metadata:
  name: private-reg
spec:
  containers:
  - name: private-reg-container
    image: <your-private-image>
  imagePullSecrets:
  - name: regcred


Error: INSTALLATION FAILED: 1 error occurred:
	* Deployment in version "v1" cannot be handled as a Deployment: json: cannot unmarshal string into Go struct field 
PodSpec.spec.template.spec.imagePullSecrets of type v1.LocalObjectReference
Solution: imagePullSecrets: [{ name: yourSecret }]


Related[edit]

See also[edit]

Advertising: