How to pull the images from private repository ( nexus ) to k8s kubeadm cluster - DeekshithSN/CICD_Java_gradle_application GitHub Wiki

create the secret in k8s cluster with proper details ( below command can help )

kubectl create secret docker-registry registry-secret --docker-server=nexus_machine_ip_only:8083 --docker-username=admin --docker-password=admin [email protected]

once its done refer the same in k8s manifest files as below

apiVersion: v1
kind: Pod
metadata:
  name: foo
spec:
  containers:
    - name: foo
      image: nginx
  imagePullSecrets:
    - name: registry-secret