Browse Source

Updated notes on creating kaniko-secrtet

Fred Damstra (Macbook 2015) 2 years ago
parent
commit
a36dda9a27
1 changed files with 14 additions and 1 deletions
  1. 14 1
      kaniko-update-route53.yaml

+ 14 - 1
kaniko-update-route53.yaml

@@ -1,7 +1,7 @@
 ---
 # Kaniko builds images without docker
 #
-# Use 'kubectl create -f kaniko.yaml' to execute
+# Use 'kubectl create -f kaniko.yaml' to test
 # 
 # NOTES:
 # If this is your first kaniko, you need to add a token:
@@ -13,6 +13,19 @@
 #  --docker-server=https://index.docker.io/v1/ \
 #  --docker-username=<your-username> \
 #  --docker-password=<your-password>
+#
+#  Then you need to create the kaniko version:
+#  echo -n <docker_username>:<docker_password> | base64
+#  cat > config.json
+#    {
+#      "auths": {
+#        "https://index.docker.io/v1/": {
+#          "auth": "PASTE BASE64 FROM ABOVE"
+#        }
+#      }
+#    }
+#    ^D
+#  kubectl create secret generic kaniko-secret --from-file config.json
 apiVersion: batch/v1
 kind: Job
 metadata: