Openshift

Create a secret for a registry


#!/bin/bash

$ oc create secret docker-registry nexus.registry \
--docker-server=https://repo-url \
--docker-username=user \
--docker-password=password \
--docker-email=email
                        

 
Now link the secret


oc secrets link default nexus.registry --for=pull
                        

 
Docker config


oc create secret generic all.registry  --from-file=.dockerconfigjson=/home/lzuccarelli/.docker/config.json  --type=kubernetes.io/dockerconfigjson
                        

 
Config map from file


oc create configmap configcontent --from-file=/home/lzuccarelli/.docker/config.json
                        
About
This is a collection of data for a quick lookup / reference
 
Its not an exhaustive reference (nor will it be), but as stated before its a quick lookup / reference
LMZ 2020