Last active
February 23, 2021 01:44
-
-
Save mrjamiebowman/247297484080fdc72443c249cb7f2ef0 to your computer and use it in GitHub Desktop.
Kubernetes Generate Docker Secret with PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$registry = "docker.io" | |
$username = "mrjamiebowman" | |
$password = Read-Host "Enter a Password" -MaskInput | |
kubectl create secret docker-registry dockercred --docker-server=$registry --docker-username=$username --docker-password=$password -o jsonpath="{.data.\.dockerconfigjson}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment