Merge pull request #1543 from thockin-tmp/gcr-vanity
Convert registry to k8s.gcr.io
This commit is contained in:
		
						commit
						d65527a4aa
					
				|  | @ -761,7 +761,7 @@ spec: | ||||||
|     spec: |     spec: | ||||||
|       containers: |       containers: | ||||||
|         - name: c |         - name: c | ||||||
|           image: gcr.io/google_containers/busybox |           image: k8s.gcr.io/busybox | ||||||
|           command: |           command: | ||||||
|             - 'sh' |             - 'sh' | ||||||
|             - '-c' |             - '-c' | ||||||
|  |  | ||||||
|  | @ -479,7 +479,7 @@ spec: | ||||||
|     spec: |     spec: | ||||||
|       containers: |       containers: | ||||||
|       - name: nginx |       - name: nginx | ||||||
|         image: gcr.io/google_containers/nginx-slim:0.8 |         image: k8s.gcr.io/nginx-slim:0.8 | ||||||
|         ports: |         ports: | ||||||
|         - containerPort: 80 |         - containerPort: 80 | ||||||
|           name: web |           name: web | ||||||
|  | @ -530,7 +530,7 @@ spec: | ||||||
|         type: RollingUpdate |         type: RollingUpdate | ||||||
|       containers: |       containers: | ||||||
|       - name: nginx |       - name: nginx | ||||||
|         image: gcr.io/google_containers/nginx-slim:0.9 |         image: k8s.gcr.io/nginx-slim:0.9 | ||||||
|         ports: |         ports: | ||||||
|         - containerPort: 80 |         - containerPort: 80 | ||||||
|           name: web |           name: web | ||||||
|  | @ -582,7 +582,7 @@ spec: | ||||||
|           ordinal: 2 |           ordinal: 2 | ||||||
|       containers: |       containers: | ||||||
|       - name: nginx |       - name: nginx | ||||||
|         image: gcr.io/google_containers/nginx-slim:0.9 |         image: k8s.gcr.io/nginx-slim:0.9 | ||||||
|         ports: |         ports: | ||||||
|         - containerPort: 80 |         - containerPort: 80 | ||||||
|           name: web |           name: web | ||||||
|  | @ -626,7 +626,7 @@ spec: | ||||||
|           ordinal: 3 |           ordinal: 3 | ||||||
|       containers: |       containers: | ||||||
|       - name: nginx |       - name: nginx | ||||||
|         image: gcr.io/google_containers/nginx-slim:0.9 |         image: k8s.gcr.io/nginx-slim:0.9 | ||||||
|         ports: |         ports: | ||||||
|         - containerPort: 80 |         - containerPort: 80 | ||||||
|           name: web |           name: web | ||||||
|  | @ -670,7 +670,7 @@ spec: | ||||||
|           ordinal: 2 |           ordinal: 2 | ||||||
|       containers: |       containers: | ||||||
|       - name: nginx |       - name: nginx | ||||||
|         image: gcr.io/google_containers/nginx-slim:0.9 |         image: k8s.gcr.io/nginx-slim:0.9 | ||||||
|         ports: |         ports: | ||||||
|         - containerPort: 80 |         - containerPort: 80 | ||||||
|           name: web |           name: web | ||||||
|  | @ -714,7 +714,7 @@ spec: | ||||||
|           ordinal: 1 |           ordinal: 1 | ||||||
|       containers: |       containers: | ||||||
|       - name: nginx |       - name: nginx | ||||||
|         image: gcr.io/google_containers/nginx-slim:0.9 |         image: k8s.gcr.io/nginx-slim:0.9 | ||||||
|         ports: |         ports: | ||||||
|         - containerPort: 80 |         - containerPort: 80 | ||||||
|           name: web |           name: web | ||||||
|  |  | ||||||
|  | @ -163,5 +163,5 @@ For simpler UX we will provide simple bash scripts that will wrap all basic comm | ||||||
| One disadvantage of using Ansible is that it adds a dependency on a machine which runs deployment scripts. We will workaround | One disadvantage of using Ansible is that it adds a dependency on a machine which runs deployment scripts. We will workaround | ||||||
| this by distributing deployment scripts via a docker image so that user will run the following command to create a cluster: | this by distributing deployment scripts via a docker image so that user will run the following command to create a cluster: | ||||||
| 
 | 
 | ||||||
| ```docker run gcr.io/google_containers/deploy_kubernetes:v1.2 up --num-nodes=3 --provider=aws``` | ```docker run k8s.gcr.io/deploy_kubernetes:v1.2 up --num-nodes=3 --provider=aws``` | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -121,7 +121,7 @@ For reference see [docker/docker#24739](https://github.com/docker/docker/issues/ | ||||||
| 
 | 
 | ||||||
| This has been debated quite a lot about; how we should name non-amd64 docker images that are pushed to `gcr.io`. See [#23059](https://github.com/kubernetes/kubernetes/pull/23059) and [#23009](https://github.com/kubernetes/kubernetes/pull/23009). | This has been debated quite a lot about; how we should name non-amd64 docker images that are pushed to `gcr.io`. See [#23059](https://github.com/kubernetes/kubernetes/pull/23059) and [#23009](https://github.com/kubernetes/kubernetes/pull/23009). | ||||||
| 
 | 
 | ||||||
| This means that the naming `gcr.io/google_containers/${binary}:${version}` should contain a _manifest list_ for future tags. | This means that the naming `k8s.gcr.io/${binary}:${version}` should contain a _manifest list_ for future tags. | ||||||
| The manifest list thereby becomes a wrapper that is pointing to the `-${arch}` images. | The manifest list thereby becomes a wrapper that is pointing to the `-${arch}` images. | ||||||
| This requires `docker-1.10` or newer, which probably means Kubernetes v1.4 and higher. | This requires `docker-1.10` or newer, which probably means Kubernetes v1.4 and higher. | ||||||
| 
 | 
 | ||||||
|  | @ -471,7 +471,7 @@ CMD ["/usr/local/bin/kube-apiserver"] | ||||||
| ```console | ```console | ||||||
| $ file kube-apiserver | $ file kube-apiserver | ||||||
| kube-apiserver: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, not stripped | kube-apiserver: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, not stripped | ||||||
| $ docker build -t gcr.io/google_containers/kube-apiserver-arm:v1.x.y . | $ docker build -t k8s.gcr.io/kube-apiserver-arm:v1.x.y . | ||||||
| Step 1 : FROM armel/busybox | Step 1 : FROM armel/busybox | ||||||
|  ---> 9bb1e6d4f824 |  ---> 9bb1e6d4f824 | ||||||
| Step 2 : ENV kubernetes true | Step 2 : ENV kubernetes true | ||||||
|  |  | ||||||
|  | @ -162,7 +162,7 @@ metadata: | ||||||
| spec: | spec: | ||||||
|   containers: |   containers: | ||||||
|     - name: test-container |     - name: test-container | ||||||
|       image: gcr.io/google_containers/busybox |       image: k8s.gcr.io/busybox | ||||||
|       command: [ "/bin/sh","-c", "env" ] |       command: [ "/bin/sh","-c", "env" ] | ||||||
|       resources: |       resources: | ||||||
|         requests: |         requests: | ||||||
|  | @ -186,7 +186,7 @@ metadata: | ||||||
| spec: | spec: | ||||||
|   containers: |   containers: | ||||||
|     - name: client-container |     - name: client-container | ||||||
|       image: gcr.io/google_containers/busybox |       image: k8s.gcr.io/busybox | ||||||
|       command: ["sh", "-c", "while true; do if [[ -e /etc/labels ]]; then cat /etc/labels; fi; if [[ -e /etc/annotations ]]; then cat /etc/annotations; fi;sleep 5; done"] |       command: ["sh", "-c", "while true; do if [[ -e /etc/labels ]]; then cat /etc/labels; fi; if [[ -e /etc/annotations ]]; then cat /etc/annotations; fi;sleep 5; done"] | ||||||
|       resources: |       resources: | ||||||
|         requests: |         requests: | ||||||
|  | @ -308,7 +308,7 @@ metadata: | ||||||
| spec: | spec: | ||||||
|   containers: |   containers: | ||||||
|     - name: test-container |     - name: test-container | ||||||
|       image: gcr.io/google_containers/busybox |       image: k8s.gcr.io/busybox | ||||||
|       command: [ "/bin/sh","-c", "env" ] |       command: [ "/bin/sh","-c", "env" ] | ||||||
|       resources: |       resources: | ||||||
|         requests: |         requests: | ||||||
|  | @ -332,7 +332,7 @@ metadata: | ||||||
| spec: | spec: | ||||||
|   containers: |   containers: | ||||||
|     - name: client-container |     - name: client-container | ||||||
|       image: gcr.io/google_containers/busybox |       image: k8s.gcr.io/busybox | ||||||
|       command: ["sh", "-c", "while true; do if [[ -e /etc/labels ]]; then cat /etc/labels; fi; if [[ -e /etc/annotations ]]; then cat /etc/annotations; fi; sleep 5; done"] |       command: ["sh", "-c", "while true; do if [[ -e /etc/labels ]]; then cat /etc/labels; fi; if [[ -e /etc/annotations ]]; then cat /etc/annotations; fi; sleep 5; done"] | ||||||
|       resources: |       resources: | ||||||
|         requests: |         requests: | ||||||
|  | @ -470,7 +470,7 @@ metadata: | ||||||
| spec: | spec: | ||||||
|   containers: |   containers: | ||||||
|     - name: test-container |     - name: test-container | ||||||
|       image: gcr.io/google_containers/busybox |       image: k8s.gcr.io/busybox | ||||||
|       command: [ "/bin/sh","-c", "env" ] |       command: [ "/bin/sh","-c", "env" ] | ||||||
|       resources: |       resources: | ||||||
|         requests: |         requests: | ||||||
|  | @ -501,7 +501,7 @@ metadata: | ||||||
| spec: | spec: | ||||||
|   containers: |   containers: | ||||||
|     - name: client-container |     - name: client-container | ||||||
|       image: gcr.io/google_containers/busybox |       image: k8s.gcr.io/busybox | ||||||
|       command: ["sh", "-c","while true; do if [[ -e /etc/labels ]]; then cat /etc/labels; fi; if [[ -e /etc/annotations ]]; then cat /etc/annotations; fi; sleep 5; done"] |       command: ["sh", "-c","while true; do if [[ -e /etc/labels ]]; then cat /etc/labels; fi; if [[ -e /etc/annotations ]]; then cat /etc/annotations; fi; sleep 5; done"] | ||||||
|       resources: |       resources: | ||||||
|         requests: |         requests: | ||||||
|  | @ -586,7 +586,7 @@ metadata: | ||||||
| spec: | spec: | ||||||
|   containers: |   containers: | ||||||
|     - name: test-container |     - name: test-container | ||||||
|       image: gcr.io/google_containers/busybox |       image: k8s.gcr.io/busybox | ||||||
|       command: [ "/bin/sh","-c", "env" ] |       command: [ "/bin/sh","-c", "env" ] | ||||||
|       resources: |       resources: | ||||||
|         requests: |         requests: | ||||||
|  |  | ||||||
|  | @ -381,7 +381,7 @@ metadata: | ||||||
| spec: | spec: | ||||||
|   containers: |   containers: | ||||||
|     - name: test-container |     - name: test-container | ||||||
|       image: gcr.io/google_containers/busybox |       image: k8s.gcr.io/busybox | ||||||
|       command: [ "/bin/sh", "-c", "env" ] |       command: [ "/bin/sh", "-c", "env" ] | ||||||
|       env: |       env: | ||||||
|         - name: PUBLIC_URL |         - name: PUBLIC_URL | ||||||
|  | @ -399,7 +399,7 @@ metadata: | ||||||
| spec: | spec: | ||||||
|   containers: |   containers: | ||||||
|     - name: test-container |     - name: test-container | ||||||
|       image: gcr.io/google_containers/busybox |       image: k8s.gcr.io/busybox | ||||||
|       command: [ "/bin/sh", "-c", "env" ] |       command: [ "/bin/sh", "-c", "env" ] | ||||||
|       env: |       env: | ||||||
|         - name: POD_NAMESPACE |         - name: POD_NAMESPACE | ||||||
|  |  | ||||||
|  | @ -30,7 +30,7 @@ running the Kubelet intentionally is using a chroot and is neither a container n | ||||||
| The kubelet chroot will essentially operate as follows: | The kubelet chroot will essentially operate as follows: | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
| container-download-and-extract gcr.io/google_containers/hyperkube:v1.4.0 /path/to/chroot | container-download-and-extract k8s.gcr.io/hyperkube:v1.4.0 /path/to/chroot | ||||||
| mount --make-shared /var/lib/kubelet | mount --make-shared /var/lib/kubelet | ||||||
| mount --rbind /var/lib/kubelet /path/to/chroot/var/lib/kubelet | mount --rbind /var/lib/kubelet /path/to/chroot/var/lib/kubelet | ||||||
| # And many more mounts, omitted | # And many more mounts, omitted | ||||||
|  | @ -65,7 +65,7 @@ This work will also only initially target the GCE provider and `kube-up` method | ||||||
| 
 | 
 | ||||||
| #### Hyperkube Image Packaging | #### Hyperkube Image Packaging | ||||||
| 
 | 
 | ||||||
| The Hyperkube image is distributed as part of an official release to the `gcr.io/google_containers` registry, but is not included along with the `kube-up` artifacts used for deployment. | The Hyperkube image is distributed as part of an official release to the `k8s.gcr.io` registry, but is not included along with the `kube-up` artifacts used for deployment. | ||||||
| 
 | 
 | ||||||
| This will need to be remediated in order to complete this proposal. | This will need to be remediated in order to complete this proposal. | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -248,7 +248,7 @@ metadata: | ||||||
| spec: | spec: | ||||||
|   containers: |   containers: | ||||||
|     - name: explorer |     - name: explorer | ||||||
|       image: gcr.io/google_containers/explorer:1.0 |       image: k8s.gcr.io/explorer:1.0 | ||||||
|       args: ["-port=8080"] |       args: ["-port=8080"] | ||||||
|       ports: |       ports: | ||||||
|         - containerPort: 8080 |         - containerPort: 8080 | ||||||
|  |  | ||||||
|  | @ -569,7 +569,7 @@ application image is constructed. When someone asks for help, Roy's first step | ||||||
| is to run his team's autodiagnose script: | is to run his team's autodiagnose script: | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
| % kubectl debug --image=gcr.io/google_containers/autodiagnose nginx-pod-1234 | % kubectl debug --image=k8s.gcr.io/autodiagnose nginx-pod-1234 | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ### Appendix 2: Requirements Analysis | ### Appendix 2: Requirements Analysis | ||||||
|  |  | ||||||
|  | @ -266,7 +266,7 @@ The term `Partitions` are used here to describe the main use cases for local sto | ||||||
|           terminationGracePeriodSeconds: 10 |           terminationGracePeriodSeconds: 10 | ||||||
|           containers: |           containers: | ||||||
|           - name: nginx |           - name: nginx | ||||||
|             image: gcr.io/google_containers/nginx-slim:0.8 |             image: k8s.gcr.io/nginx-slim:0.8 | ||||||
|             ports: |             ports: | ||||||
|             - containerPort: 80 |             - containerPort: 80 | ||||||
|               name: web |               name: web | ||||||
|  |  | ||||||
|  | @ -461,7 +461,7 @@ spec: | ||||||
|     spec: |     spec: | ||||||
|       containers: |       containers: | ||||||
|       - name: provisioner |       - name: provisioner | ||||||
|         image: "gcr.io/google_containers/local-storage-provisioner:v1.0" |         image: "k8s.gcr.io/local-storage-provisioner:v1.0" | ||||||
|         imagePullPolicy: Always |         imagePullPolicy: Always | ||||||
|         volumeMounts: |         volumeMounts: | ||||||
|         - name: vol1 |         - name: vol1 | ||||||
|  |  | ||||||
|  | @ -466,7 +466,7 @@ metadata: | ||||||
|   name: test-pd |   name: test-pd | ||||||
| spec: | spec: | ||||||
|   containers: |   containers: | ||||||
|   - image: gcr.io/google_containers/test-webserver |   - image: k8s.gcr.io/test-webserver | ||||||
|     name: test-container |     name: test-container | ||||||
|     volumeMounts: |     volumeMounts: | ||||||
|     - mountPath: /test-pd |     - mountPath: /test-pd | ||||||
|  | @ -486,7 +486,7 @@ metadata: | ||||||
|   name: test-pd |   name: test-pd | ||||||
| spec: | spec: | ||||||
|   containers: |   containers: | ||||||
|   - image: gcr.io/google_containers/test-webserver |   - image: k8s.gcr.io/test-webserver | ||||||
|     name: test-container |     name: test-container | ||||||
|     volumeMounts: |     volumeMounts: | ||||||
|     - mountPath: /test-pd |     - mountPath: /test-pd | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue