Merge pull request #6749 from thockin-tmp/gcr-vanity

Convert registry to k8s.gcr.io
This commit is contained in:
Qiming
2017-12-23 17:09:35 +08:00
committed by GitHub
109 changed files with 180 additions and 180 deletions
+1 -1
View File
@@ -6415,7 +6415,7 @@ The resulting set of endpoints can be viewed as:<br>
<tbody> <tbody>
<tr> <tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">names</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">names</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Names by which this image is known. e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Names by which this image is known. e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">string array</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">string array</p></td>
<td class="tableblock halign-left valign-top"></td> <td class="tableblock halign-left valign-top"></td>
+1 -1
View File
@@ -6671,7 +6671,7 @@ The resulting set of endpoints can be viewed as:<br>
<tbody> <tbody>
<tr> <tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">names</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">names</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Names by which this image is known. e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Names by which this image is known. e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">string array</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">string array</p></td>
<td class="tableblock halign-left valign-top"></td> <td class="tableblock halign-left valign-top"></td>
+1 -1
View File
@@ -6850,7 +6850,7 @@ The resulting set of endpoints can be viewed as:<br>
<tbody> <tbody>
<tr> <tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">names</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">names</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Names by which this image is known. e.g. ["gcr.io/google_containers/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Names by which this image is known. e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">string array</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">string array</p></td>
<td class="tableblock halign-left valign-top"></td> <td class="tableblock halign-left valign-top"></td>
+1 -1
View File
@@ -85,7 +85,7 @@ AWS使用的规格为:
```yaml ```yaml
containers: containers:
- name: fluentd-cloud-logging - name: fluentd-cloud-logging
image: gcr.io/google_containers/fluentd-gcp:1.16 image: k8s.gcr.io/fluentd-gcp:1.16
resources: resources:
limits: limits:
cpu: 100m cpu: 100m
+3 -3
View File
@@ -40,7 +40,7 @@ title: 节点设置校验
# $LOG_DIR 是测试结果输出的路径。 # $LOG_DIR 是测试结果输出的路径。
sudo docker run -it --rm --privileged --net=host \ sudo docker run -it --rm --privileged --net=host \
-v /:/rootfs -v $CONFIG_DIR:$CONFIG_DIR -v $LOG_DIR:/var/result \ -v /:/rootfs -v $CONFIG_DIR:$CONFIG_DIR -v $LOG_DIR:/var/result \
gcr.io/google_containers/node-test:0.2 k8s.gcr.io/node-test:0.2
``` ```
## 针对其他硬件体系结构运行节点合规性测试 ## 针对其他硬件体系结构运行节点合规性测试
@@ -61,7 +61,7 @@ Kubernetes 也为其他硬件体系结构的系统提供了节点合规性测试
sudo docker run -it --rm --privileged --net=host \ sudo docker run -it --rm --privileged --net=host \
-v /:/rootfs:ro -v $CONFIG_DIR:$CONFIG_DIR -v $LOG_DIR:/var/result \ -v /:/rootfs:ro -v $CONFIG_DIR:$CONFIG_DIR -v $LOG_DIR:/var/result \
-e FOCUS=MirrorPod \ # 只运行MirrorPod测试 -e FOCUS=MirrorPod \ # 只运行MirrorPod测试
gcr.io/google_containers/node-test:0.2 k8s.gcr.io/node-test:0.2
``` ```
为跳过指定的测试,用正则表达式来描述将要跳过的测试,并重载 `SKIP` 环境变量。 为跳过指定的测试,用正则表达式来描述将要跳过的测试,并重载 `SKIP` 环境变量。
@@ -70,7 +70,7 @@ sudo docker run -it --rm --privileged --net=host \
sudo docker run -it --rm --privileged --net=host \ sudo docker run -it --rm --privileged --net=host \
-v /:/rootfs:ro -v $CONFIG_DIR:$CONFIG_DIR -v $LOG_DIR:/var/result \ -v /:/rootfs:ro -v $CONFIG_DIR:$CONFIG_DIR -v $LOG_DIR:/var/result \
-e SKIP=MirrorPod \ # 运行除MirrorPod外的所有测试 -e SKIP=MirrorPod \ # 运行除MirrorPod外的所有测试
gcr.io/google_containers/node-test:0.2 k8s.gcr.io/node-test:0.2
``` ```
节点合规性测试是[节点端到端测试](https://github.com/kubernetes/community/blob/{{page.githubbranch}}/contributors/devel/e2e-node-tests.md)的一个容器化的版本。 节点合规性测试是[节点端到端测试](https://github.com/kubernetes/community/blob/{{page.githubbranch}}/contributors/devel/e2e-node-tests.md)的一个容器化的版本。
+1 -1
View File
@@ -216,7 +216,7 @@ metadata:
spec: spec:
containers: containers:
- name: sleep-forever - name: sleep-forever
image: gcr.io/google_containers/pause:0.8.0 image: k8s.gcr.io/pause:0.8.0
resources: resources:
requests: requests:
cpu: 100m cpu: 100m
@@ -199,7 +199,7 @@ Conditions:
Events: Events:
FirstSeen LastSeen Count From SubobjectPath Reason Message FirstSeen LastSeen Count From SubobjectPath Reason Message
Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {scheduler } scheduled Successfully assigned simmemleak-hra99 to kubernetes-node-tf0f Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {scheduler } scheduled Successfully assigned simmemleak-hra99 to kubernetes-node-tf0f
Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} implicitly required container POD pulled Pod container image "gcr.io/google_containers/pause:0.8.0" already present on machine Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} implicitly required container POD pulled Pod container image "k8s.gcr.io/pause:0.8.0" already present on machine
Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} implicitly required container POD created Created with docker id 6a41280f516d Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} implicitly required container POD created Created with docker id 6a41280f516d
Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} implicitly required container POD started Started with docker id 6a41280f516d Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} implicitly required container POD started Started with docker id 6a41280f516d
Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} spec.containers{simmemleak} created Created with docker id 87348f12526a Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} spec.containers{simmemleak} created Created with docker id 87348f12526a
@@ -23,4 +23,4 @@ spec:
- another-node-label-value - another-node-label-value
containers: containers:
- name: with-node-affinity - name: with-node-affinity
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
@@ -26,4 +26,4 @@ spec:
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
containers: containers:
- name: with-pod-affinity - name: with-pod-affinity
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
+1 -1
View File
@@ -518,7 +518,7 @@ spec:
secretName: dotfile-secret secretName: dotfile-secret
containers: containers:
- name: dotfile-test-container - name: dotfile-test-container
image: gcr.io/google_containers/busybox image: k8s.gcr.io/busybox
command: command:
- ls - ls
- "-l" - "-l"
@@ -108,7 +108,7 @@ spec:
containers: containers:
- args: - args:
- /server - /server
image: gcr.io/google_containers/liveness image: k8s.gcr.io/liveness
livenessProbe: livenessProbe:
httpGet: httpGet:
# when "host" is not defined, "PodIP" will be used # when "host" is not defined, "PodIP" will be used
@@ -9,7 +9,7 @@ metadata:
spec: spec:
containers: containers:
- name: master - name: master
image: gcr.io/google_containers/redis:v1 image: k8s.gcr.io/redis:v1
env: env:
- name: MASTER - name: MASTER
value: "true" value: "true"
@@ -178,7 +178,7 @@ $ kubectl get pods valid-pod --namespace=limit-example -o yaml | grep -C 6 resou
uid: 3b1bfd7a-f53c-11e5-b066-64510658e388 uid: 3b1bfd7a-f53c-11e5-b066-64510658e388
spec: spec:
containers: containers:
- image: gcr.io/google_containers/serve_hostname - image: k8s.gcr.io/serve_hostname
imagePullPolicy: Always imagePullPolicy: Always
name: kubernetes-serve-hostname name: kubernetes-serve-hostname
resources: resources:
@@ -13,7 +13,7 @@ spec:
spec: spec:
containers: containers:
- name: autoscaler - name: autoscaler
image: gcr.io/google_containers/cluster-proportional-autoscaler-amd64:1.0.0 image: k8s.gcr.io/cluster-proportional-autoscaler-amd64:1.0.0
resources: resources:
requests: requests:
cpu: "20m" cpu: "20m"
+1 -1
View File
@@ -7,4 +7,4 @@ metadata:
spec: spec:
containers: containers:
- name: pod-with-no-annotation-container - name: pod-with-no-annotation-container
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
+1 -1
View File
@@ -8,4 +8,4 @@ spec:
schedulerName: default-scheduler schedulerName: default-scheduler
containers: containers:
- name: pod-with-default-annotation-container - name: pod-with-default-annotation-container
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
+1 -1
View File
@@ -8,4 +8,4 @@ spec:
schedulerName: my-scheduler schedulerName: my-scheduler
containers: containers:
- name: pod-with-second-annotation-container - name: pod-with-second-annotation-container
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
@@ -15,7 +15,7 @@ spec:
- -c - -c
- touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600 - touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600
image: gcr.io/google_containers/busybox image: k8s.gcr.io/busybox
livenessProbe: livenessProbe:
exec: exec:
@@ -9,7 +9,7 @@ spec:
- name: liveness - name: liveness
args: args:
- /server - /server
image: gcr.io/google_containers/liveness image: k8s.gcr.io/liveness
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /healthz path: /healthz
@@ -7,7 +7,7 @@ metadata:
spec: spec:
containers: containers:
- name: goproxy - name: goproxy
image: gcr.io/google_containers/goproxy:0.1 image: k8s.gcr.io/goproxy:0.1
ports: ports:
- containerPort: 8080 - containerPort: 8080
readinessProbe: readinessProbe:
@@ -5,7 +5,7 @@ metadata:
spec: spec:
containers: containers:
- name: test-container - name: test-container
image: gcr.io/google_containers/busybox:1.24 image: k8s.gcr.io/busybox:1.24
command: [ "sh", "-c"] command: [ "sh", "-c"]
args: args:
- while true; do - while true; do
@@ -5,7 +5,7 @@ metadata:
spec: spec:
containers: containers:
- name: test-container - name: test-container
image: gcr.io/google_containers/busybox image: k8s.gcr.io/busybox
command: [ "sh", "-c"] command: [ "sh", "-c"]
args: args:
- while true; do - while true; do
@@ -5,7 +5,7 @@ metadata:
spec: spec:
containers: containers:
- name: client-container - name: client-container
image: gcr.io/google_containers/busybox:1.24 image: k8s.gcr.io/busybox:1.24
command: ["sh", "-c"] command: ["sh", "-c"]
args: args:
- while true; do - while true; do
@@ -12,7 +12,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"] command: ["sh", "-c"]
args: args:
- while true; do - while true; do
+3 -3
View File
@@ -41,13 +41,13 @@ spec:
containers: containers:
- -
name: gpu-container-1 name: gpu-container-1
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
resources: resources:
limits: limits:
alpha.kubernetes.io/nvidia-gpu: 2 # requesting 2 GPUs alpha.kubernetes.io/nvidia-gpu: 2 # requesting 2 GPUs
- -
name: gpu-container-2 name: gpu-container-2
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
resources: resources:
limits: limits:
alpha.kubernetes.io/nvidia-gpu: 3 # requesting 3 GPUs alpha.kubernetes.io/nvidia-gpu: 3 # requesting 3 GPUs
@@ -141,7 +141,7 @@ metadata:
spec: spec:
containers: containers:
- name: gpu-container-1 - name: gpu-container-1
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
resources: resources:
limits: limits:
alpha.kubernetes.io/nvidia-gpu: 1 alpha.kubernetes.io/nvidia-gpu: 1
+1 -1
View File
@@ -33,7 +33,7 @@ Kubernetes 集群中运行的应用通过抽象的 Service 查找彼此,相互
你必须拥有一个正常工作的 Kubernetes 1.5 集群,用来运行本文中的示例。该示例使用一个简单的 nginx webserver 回送它接收到的请求的 HTTP 头中的源 IP 地址。你可以像下面这样创建它: 你必须拥有一个正常工作的 Kubernetes 1.5 集群,用来运行本文中的示例。该示例使用一个简单的 nginx webserver 回送它接收到的请求的 HTTP 头中的源 IP 地址。你可以像下面这样创建它:
```console ```console
$ kubectl run source-ip-app --image=gcr.io/google_containers/echoserver:1.4 $ kubectl run source-ip-app --image=k8s.gcr.io/echoserver:1.4
deployment "source-ip-app" created deployment "source-ip-app" created
``` ```
@@ -434,7 +434,7 @@ Kubernetes 1.7 版本的 StatefulSet 控制器支持自动更新。更新策略
Patch `web` StatefulSet 的容器镜像。 Patch `web` StatefulSet 的容器镜像。
```shell ```shell
kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"gcr.io/google_containers/nginx-slim:0.7"}]' kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"k8s.gcr.io/nginx-slim:0.7"}]'
"web" patched "web" patched
``` ```
@@ -470,9 +470,9 @@ web-0 1/1 Running 0 3s
```shell{% raw %} ```shell{% raw %}
kubectl get pod -l app=nginx -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.containers[0].image}{"\n"}{end}' kubectl get pod -l app=nginx -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.containers[0].image}{"\n"}{end}'
web-0 gcr.io/google_containers/nginx-slim:0.7 web-0 k8s.gcr.io/nginx-slim:0.7
web-1 gcr.io/google_containers/nginx-slim:0.8 web-1 k8s.gcr.io/nginx-slim:0.8
web-2 gcr.io/google_containers/nginx-slim:0.8 web-2 k8s.gcr.io/nginx-slim:0.8
{% endraw %}``` {% endraw %}```
`web-0` has had its image updated, but `web-0` and `web-1` still have the original `web-0` has had its image updated, but `web-0` and `web-1` still have the original
@@ -513,9 +513,9 @@ web-2 1/1 Running 0 36s
```shell{% raw %} ```shell{% raw %}
kubectl get pod -l app=nginx -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.containers[0].image}{"\n"}{end}' kubectl get pod -l app=nginx -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.containers[0].image}{"\n"}{end}'
web-0 gcr.io/google_containers/nginx-slim:0.7 web-0 k8s.gcr.io/nginx-slim:0.7
web-1 gcr.io/google_containers/nginx-slim:0.7 web-1 k8s.gcr.io/nginx-slim:0.7
web-2 gcr.io/google_containers/nginx-slim:0.7 web-2 k8s.gcr.io/nginx-slim:0.7
{% endraw %} {% endraw %}
``` ```
@@ -539,7 +539,7 @@ statefulset "web" patched
在一个终端窗口中 patch `web` StatefulSet 来再次的改变容器镜像。 在一个终端窗口中 patch `web` StatefulSet 来再次的改变容器镜像。
```shell ```shell
kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"gcr.io/google_containers/nginx-slim:0.8"}]' kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"k8s.gcr.io/nginx-slim:0.8"}]'
statefulset "web" patched statefulset "web" patched
``` ```
@@ -589,9 +589,9 @@ StatefulSet 里的 Pod 采用和序号相反的顺序更新。在更新下一个
```shell{% raw %} ```shell{% raw %}
for p in 0 1 2; do kubectl get po web-$p --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'; echo; done for p in 0 1 2; do kubectl get po web-$p --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'; echo; done
gcr.io/google_containers/nginx-slim:0.8 k8s.gcr.io/nginx-slim:0.8
gcr.io/google_containers/nginx-slim:0.8 k8s.gcr.io/nginx-slim:0.8
gcr.io/google_containers/nginx-slim:0.8 k8s.gcr.io/nginx-slim:0.8
{% endraw %} {% endraw %}
``` ```
@@ -617,7 +617,7 @@ statefulset "web" patched
再次 Patch StatefulSet 来改变容器镜像。 再次 Patch StatefulSet 来改变容器镜像。
```shell ```shell
kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"gcr.io/google_containers/nginx-slim:0.7"}]' kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"k8s.gcr.io/nginx-slim:0.7"}]'
statefulset "web" patched statefulset "web" patched
``` ```
@@ -646,7 +646,7 @@ web-2 1/1 Running 0 18s
```shell{% raw %} ```shell{% raw %}
get po web-2 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}' get po web-2 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'
gcr.io/google_containers/nginx-slim:0.8 k8s.gcr.io/nginx-slim:0.8
{% endraw %} {% endraw %}
``` ```
@@ -683,7 +683,7 @@ web-2 1/1 Running 0 18s
```shell{% raw %} ```shell{% raw %}
kubectl get po web-2 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}' kubectl get po web-2 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'
gcr.io/google_containers/nginx-slim:0.7 k8s.gcr.io/nginx-slim:0.7
{% endraw %} {% endraw %}
``` ```
@@ -721,7 +721,7 @@ web-1 1/1 Running 0 18s
```shell{% raw %} ```shell{% raw %}
get po web-1 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}' get po web-1 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'
gcr.io/google_containers/nginx-slim:0.8 k8s.gcr.io/nginx-slim:0.8
{% endraw %} {% endraw %}
``` ```
@@ -767,9 +767,9 @@ web-0 1/1 Running 0 3s
```shell{% raw %} ```shell{% raw %}
for p in 0 1 2; do kubectl get po web-$p --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'; echo; done for p in 0 1 2; do kubectl get po web-$p --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'; echo; done
gcr.io/google_containers/nginx-slim:0.7 k8s.gcr.io/nginx-slim:0.7
gcr.io/google_containers/nginx-slim:0.7 k8s.gcr.io/nginx-slim:0.7
gcr.io/google_containers/nginx-slim:0.7 k8s.gcr.io/nginx-slim:0.7
{% endraw %} {% endraw %}
``` ```
@@ -26,7 +26,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
@@ -27,7 +27,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
+1 -1
View File
@@ -86,7 +86,7 @@ For example:
```yaml ```yaml
containers: containers:
- name: fluentd-cloud-logging - name: fluentd-cloud-logging
image: gcr.io/google_containers/fluentd-gcp:1.16 image: k8s.gcr.io/fluentd-gcp:1.16
resources: resources:
limits: limits:
cpu: 100m cpu: 100m
+5 -5
View File
@@ -87,9 +87,9 @@ images or you can build them yourself from HEAD.
### Using official release images ### Using official release images
As part of every Kubernetes release, official release images are pushed to As part of every Kubernetes release, official release images are pushed to
`gcr.io/google_containers`. To use the images in this repository, you can `k8s.gcr.io`. To use the images in this repository, you can
set the container image fields in the following configs to point to the set the container image fields in the following configs to point to the
images in this repository. `gcr.io/google_containers/hyperkube` image images in this repository. `k8s.gcr.io/hyperkube` image
includes the federation-apiserver and federation-controller-manager includes the federation-apiserver and federation-controller-manager
binaries, so you can point the corresponding configs for those components binaries, so you can point the corresponding configs for those components
to the hyperkube image. to the hyperkube image.
@@ -315,8 +315,8 @@ official release images or you can build from HEAD.
#### Using official release images #### Using official release images
As part of every release, images are pushed to `gcr.io/google_containers`. To use As part of every release, images are pushed to `k8s.gcr.io`. To use
these images, set env var `FEDERATION_PUSH_REPO_BASE=gcr.io/google_containers` these images, set env var `FEDERATION_PUSH_REPO_BASE=k8s.gcr.io`
This will always use the latest image. This will always use the latest image.
To use the hyperkube image which includes federation-apiserver and To use the hyperkube image which includes federation-apiserver and
federation-controller-manager from a specific release, set the federation-controller-manager from a specific release, set the
@@ -345,7 +345,7 @@ Once you have the images, you can run these as pods on your existing kubernetes
The command to run these pods on an existing GCE cluster will look like: The command to run these pods on an existing GCE cluster will look like:
```shell ```shell
$ KUBERNETES_PROVIDER=gce FEDERATION_DNS_PROVIDER=google-clouddns FEDERATION_NAME=myfederation DNS_ZONE_NAME=myfederation.example FEDERATION_PUSH_REPO_BASE=gcr.io/google_containers ./federation/cluster/federation-up.sh $ KUBERNETES_PROVIDER=gce FEDERATION_DNS_PROVIDER=google-clouddns FEDERATION_NAME=myfederation DNS_ZONE_NAME=myfederation.example FEDERATION_PUSH_REPO_BASE=k8s.gcr.io ./federation/cluster/federation-up.sh
``` ```
`KUBERNETES_PROVIDER` is the cloud provider. `KUBERNETES_PROVIDER` is the cloud provider.
+1 -1
View File
@@ -5,7 +5,7 @@ metadata:
spec: spec:
hostNetwork: true hostNetwork: true
containers: containers:
- image: gcr.io/google_containers/etcd:3.0.17 - image: k8s.gcr.io/etcd:3.0.17
name: etcd-container name: etcd-container
command: command:
- /usr/local/bin/etcd - /usr/local/bin/etcd
@@ -6,7 +6,7 @@ spec:
hostNetwork: true hostNetwork: true
containers: containers:
- name: kube-apiserver - name: kube-apiserver
image: gcr.io/google_containers/kube-apiserver:9680e782e08a1a1c94c656190011bd02 image: k8s.gcr.io/kube-apiserver:9680e782e08a1a1c94c656190011bd02
command: command:
- /bin/sh - /bin/sh
- -c - -c
@@ -10,7 +10,7 @@ spec:
- /usr/local/bin/kube-controller-manager --master=127.0.0.1:8080 --cluster-name=e2e-test-bburns - /usr/local/bin/kube-controller-manager --master=127.0.0.1:8080 --cluster-name=e2e-test-bburns
--cluster-cidr=10.245.0.0/16 --allocate-node-cidrs=true --cloud-provider=gce --service-account-private-key-file=/srv/kubernetes/server.key --cluster-cidr=10.245.0.0/16 --allocate-node-cidrs=true --cloud-provider=gce --service-account-private-key-file=/srv/kubernetes/server.key
--v=2 --leader-elect=true 1>>/var/log/kube-controller-manager.log 2>&1 --v=2 --leader-elect=true 1>>/var/log/kube-controller-manager.log 2>&1
image: gcr.io/google_containers/kube-controller-manager:fda24638d51a48baa13c35337fcd4793 image: k8s.gcr.io/kube-controller-manager:fda24638d51a48baa13c35337fcd4793
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /healthz path: /healthz
@@ -6,7 +6,7 @@ spec:
hostNetwork: true hostNetwork: true
containers: containers:
- name: kube-scheduler - name: kube-scheduler
image: gcr.io/google_containers/kube-scheduler:34d0b8f8b31e27937327961528739bc9 image: k8s.gcr.io/kube-scheduler:34d0b8f8b31e27937327961528739bc9
command: command:
- /bin/sh - /bin/sh
- -c - -c
+2 -2
View File
@@ -6,7 +6,7 @@ spec:
hostNetwork: true hostNetwork: true
containers: containers:
- name: scheduler-elector - name: scheduler-elector
image: gcr.io/google_containers/podmaster:1.1 image: k8s.gcr.io/podmaster:1.1
command: command:
- /podmaster - /podmaster
- --etcd-servers=http://127.0.0.1:4001 - --etcd-servers=http://127.0.0.1:4001
@@ -20,7 +20,7 @@ spec:
- mountPath: /manifests - mountPath: /manifests
name: manifests name: manifests
- name: controller-manager-elector - name: controller-manager-elector
image: gcr.io/google_containers/podmaster:1.1 image: k8s.gcr.io/podmaster:1.1
command: command:
- /podmaster - /podmaster
- --etcd-servers=http://127.0.0.1:4001 - --etcd-servers=http://127.0.0.1:4001
+1 -1
View File
@@ -5,7 +5,7 @@ metadata:
spec: spec:
containers: containers:
- name: kubernetes-serve-hostname - name: kubernetes-serve-hostname
image: gcr.io/google_containers/serve_hostname image: k8s.gcr.io/serve_hostname
resources: resources:
limits: limits:
cpu: "3" cpu: "3"
+1 -1
View File
@@ -7,7 +7,7 @@ metadata:
spec: spec:
containers: containers:
- name: kubernetes-serve-hostname - name: kubernetes-serve-hostname
image: gcr.io/google_containers/serve_hostname image: k8s.gcr.io/serve_hostname
resources: resources:
limits: limits:
cpu: "1" cpu: "1"
+1 -1
View File
@@ -7,4 +7,4 @@ metadata:
spec: spec:
containers: containers:
- name: pod-with-no-annotation-container - name: pod-with-no-annotation-container
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
+1 -1
View File
@@ -8,4 +8,4 @@ spec:
schedulerName: default-scheduler schedulerName: default-scheduler
containers: containers:
- name: pod-with-default-annotation-container - name: pod-with-default-annotation-container
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
+1 -1
View File
@@ -8,4 +8,4 @@ spec:
schedulerName: my-scheduler schedulerName: my-scheduler
containers: containers:
- name: pod-with-second-annotation-container - name: pod-with-second-annotation-container
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
+3 -3
View File
@@ -48,7 +48,7 @@ other Kubelet flags you may care:
# $LOG_DIR is the test output path. # $LOG_DIR is the test output path.
sudo docker run -it --rm --privileged --net=host \ sudo docker run -it --rm --privileged --net=host \
-v /:/rootfs -v $CONFIG_DIR:$CONFIG_DIR -v $LOG_DIR:/var/result \ -v /:/rootfs -v $CONFIG_DIR:$CONFIG_DIR -v $LOG_DIR:/var/result \
gcr.io/google_containers/node-test:0.2 k8s.gcr.io/node-test:0.2
``` ```
## Running Node Conformance Test for Other Architectures ## Running Node Conformance Test for Other Architectures
@@ -71,7 +71,7 @@ regular expression of tests you want to run.
sudo docker run -it --rm --privileged --net=host \ sudo docker run -it --rm --privileged --net=host \
-v /:/rootfs:ro -v $CONFIG_DIR:$CONFIG_DIR -v $LOG_DIR:/var/result \ -v /:/rootfs:ro -v $CONFIG_DIR:$CONFIG_DIR -v $LOG_DIR:/var/result \
-e FOCUS=MirrorPod \ # Only run MirrorPod test -e FOCUS=MirrorPod \ # Only run MirrorPod test
gcr.io/google_containers/node-test:0.2 k8s.gcr.io/node-test:0.2
``` ```
To skip specific tests, overwrite the environment variable `SKIP` with the To skip specific tests, overwrite the environment variable `SKIP` with the
@@ -81,7 +81,7 @@ regular expression of tests you want to skip.
sudo docker run -it --rm --privileged --net=host \ sudo docker run -it --rm --privileged --net=host \
-v /:/rootfs:ro -v $CONFIG_DIR:$CONFIG_DIR -v $LOG_DIR:/var/result \ -v /:/rootfs:ro -v $CONFIG_DIR:$CONFIG_DIR -v $LOG_DIR:/var/result \
-e SKIP=MirrorPod \ # Run all conformance tests but skip MirrorPod test -e SKIP=MirrorPod \ # Run all conformance tests but skip MirrorPod test
gcr.io/google_containers/node-test:0.2 k8s.gcr.io/node-test:0.2
``` ```
Node conformance test is a containerized version of [node e2e test](https://github.com/kubernetes/community/blob/{{page.githubbranch}}/contributors/devel/e2e-node-tests.md). Node conformance test is a containerized version of [node e2e test](https://github.com/kubernetes/community/blob/{{page.githubbranch}}/contributors/devel/e2e-node-tests.md).
+1 -1
View File
@@ -56950,7 +56950,7 @@ Appears In:
<tbody> <tbody>
<tr> <tr>
<td>names <br /> <em>string array</em></td> <td>names <br /> <em>string array</em></td>
<td>Names by which this image is known. e.g. [&quot;gcr.io/google_containers/hyperkube:v1.0.7&quot;, &quot;dockerhub.io/google_containers/hyperkube:v1.0.7&quot;]</td> <td>Names by which this image is known. e.g. [&quot;k8s.gcr.io/hyperkube:v1.0.7&quot;, &quot;dockerhub.io/google_containers/hyperkube:v1.0.7&quot;]</td>
</tr> </tr>
<tr> <tr>
<td>sizeBytes <br /> <em>integer</em></td> <td>sizeBytes <br /> <em>integer</em></td>
+1 -1
View File
@@ -265,7 +265,7 @@ metadata:
spec: spec:
containers: containers:
- name: sleep-forever - name: sleep-forever
image: gcr.io/google_containers/pause:0.8.0 image: k8s.gcr.io/pause:0.8.0
resources: resources:
requests: requests:
cpu: 100m cpu: 100m
@@ -22,7 +22,7 @@ spec:
- name: varlog - name: varlog
mountPath: /var/log mountPath: /var/log
- name: count-agent - name: count-agent
image: gcr.io/google_containers/fluentd-gcp:1.30 image: k8s.gcr.io/fluentd-gcp:1.30
env: env:
- name: FLUENTD_ARGS - name: FLUENTD_ARGS
value: -c /etc/fluentd-config/fluentd.conf value: -c /etc/fluentd-config/fluentd.conf
@@ -285,7 +285,7 @@ Conditions:
Events: Events:
FirstSeen LastSeen Count From SubobjectPath Reason Message FirstSeen LastSeen Count From SubobjectPath Reason Message
Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {scheduler } scheduled Successfully assigned simmemleak-hra99 to kubernetes-node-tf0f Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {scheduler } scheduled Successfully assigned simmemleak-hra99 to kubernetes-node-tf0f
Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} implicitly required container POD pulled Pod container image "gcr.io/google_containers/pause:0.8.0" already present on machine Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} implicitly required container POD pulled Pod container image "k8s.gcr.io/pause:0.8.0" already present on machine
Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} implicitly required container POD created Created with docker id 6a41280f516d Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} implicitly required container POD created Created with docker id 6a41280f516d
Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} implicitly required container POD started Started with docker id 6a41280f516d Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} implicitly required container POD started Started with docker id 6a41280f516d
Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} spec.containers{simmemleak} created Created with docker id 87348f12526a Tue, 07 Jul 2015 12:53:51 -0700 Tue, 07 Jul 2015 12:53:51 -0700 1 {kubelet kubernetes-node-tf0f} spec.containers{simmemleak} created Created with docker id 87348f12526a
@@ -23,4 +23,4 @@ spec:
- another-node-label-value - another-node-label-value
containers: containers:
- name: with-node-affinity - name: with-node-affinity
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
@@ -26,4 +26,4 @@ spec:
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
containers: containers:
- name: with-pod-affinity - name: with-pod-affinity
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
+1 -1
View File
@@ -618,7 +618,7 @@ spec:
secretName: dotfile-secret secretName: dotfile-secret
containers: containers:
- name: dotfile-test-container - name: dotfile-test-container
image: gcr.io/google_containers/busybox image: k8s.gcr.io/busybox
command: command:
- ls - ls
- "-l" - "-l"
+1 -1
View File
@@ -125,7 +125,7 @@ spec:
path: /any/path/it/will/be/replaced path: /any/path/it/will/be/replaced
containers: containers:
- name: pv-recycler - name: pv-recycler
image: "gcr.io/google_containers/busybox" image: "k8s.gcr.io/busybox"
command: ["/bin/sh", "-c", "test -e /scrub && rm -rf /scrub/..?* /scrub/.[!.]* /scrub/* && test -z \"$(ls -A /scrub)\" || exit 1"] command: ["/bin/sh", "-c", "test -e /scrub && rm -rf /scrub/..?* /scrub/.[!.]* /scrub/* && test -z \"$(ls -A /scrub)\" || exit 1"]
volumeMounts: volumeMounts:
- name: vol - name: vol
+7 -7
View File
@@ -131,7 +131,7 @@ metadata:
name: test-ebs name: test-ebs
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-ebs - mountPath: /test-ebs
@@ -246,7 +246,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: /cache - mountPath: /cache
@@ -326,7 +326,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
@@ -432,7 +432,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
@@ -665,7 +665,7 @@ metadata:
name: test-portworx-volume-pod name: test-portworx-volume-pod
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: /mnt - mountPath: /mnt
@@ -736,7 +736,7 @@ metadata:
name: pod-0 name: pod-0
spec: spec:
containers: containers:
- image: gcr.io/google_containers/test-webserver - image: k8s.gcr.io/test-webserver
name: pod-0 name: pod-0
volumeMounts: volumeMounts:
- mountPath: /test-pd - mountPath: /test-pd
@@ -866,7 +866,7 @@ metadata:
name: test-vmdk name: test-vmdk
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-vmdk - mountPath: /test-vmdk
@@ -87,7 +87,7 @@ spec:
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
@@ -198,7 +198,7 @@ spec:
containers: containers:
- args: - args:
- /server - /server
image: gcr.io/google_containers/liveness image: k8s.gcr.io/liveness
livenessProbe: livenessProbe:
httpGet: httpGet:
# when "host" is not defined, "PodIP" will be used # when "host" is not defined, "PodIP" will be used
+1 -1
View File
@@ -14,7 +14,7 @@ spec:
dnsPolicy: Default dnsPolicy: Default
containers: containers:
- name: fluentd-cloud-logging - name: fluentd-cloud-logging
image: gcr.io/google_containers/fluentd-gcp:2.0.2 image: k8s.gcr.io/fluentd-gcp:2.0.2
# If fluentd consumes its own logs, the following situation may happen: # If fluentd consumes its own logs, the following situation may happen:
# fluentd fails to send a chunk to the server => writes it to the log => # fluentd fails to send a chunk to the server => writes it to the log =>
# tries to send this message to the server => fails to send a chunk and so on. # tries to send this message to the server => fails to send a chunk and so on.
+1 -1
View File
@@ -46,7 +46,7 @@ Running pre-create checks...
Creating machine... Creating machine...
Starting local Kubernetes cluster... Starting local Kubernetes cluster...
$ kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080 $ kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.4 --port=8080
deployment "hello-minikube" created deployment "hello-minikube" created
$ kubectl expose deployment hello-minikube --type=NodePort $ kubectl expose deployment hello-minikube --type=NodePort
service "hello-minikube" exposed service "hello-minikube" exposed
+2 -2
View File
@@ -40,13 +40,13 @@ kubefed init FEDERATION_NAME --host-cluster-context=HOST_CONTEXT
--dns-provider-config string Config file path on local file system for configuring DNS provider. --dns-provider-config string Config file path on local file system for configuring DNS provider.
--dns-zone-name string DNS suffix for this federation. Federated Service DNS names are published with this suffix. --dns-zone-name string DNS suffix for this federation. Federated Service DNS names are published with this suffix.
--dry-run dry run without sending commands to server. --dry-run dry run without sending commands to server.
--etcd-image string Image to use for etcd server. (default "gcr.io/google_containers/etcd:3.1.10") --etcd-image string Image to use for etcd server. (default "k8s.gcr.io/etcd:3.1.10")
--etcd-persistent-storage Use persistent volume for etcd. Defaults to 'true'. (default true) --etcd-persistent-storage Use persistent volume for etcd. Defaults to 'true'. (default true)
--etcd-pv-capacity string Size of persistent volume claim to be used for etcd. (default "10Gi") --etcd-pv-capacity string Size of persistent volume claim to be used for etcd. (default "10Gi")
--etcd-pv-storage-class string The storage class of the persistent volume claim used for etcd. Must be provided if a default storage class is not enabled for the host cluster. --etcd-pv-storage-class string The storage class of the persistent volume claim used for etcd. Must be provided if a default storage class is not enabled for the host cluster.
--federation-system-namespace string Namespace in the host cluster where the federation system components are installed (default "federation-system") --federation-system-namespace string Namespace in the host cluster where the federation system components are installed (default "federation-system")
--host-cluster-context string Host cluster context --host-cluster-context string Host cluster context
--image string Image to use for federation API server and controller manager binaries. (default "gcr.io/google_containers/hyperkube-amd64:v0.0.0-master_$Format:%h$") --image string Image to use for federation API server and controller manager binaries. (default "k8s.gcr.io/hyperkube-amd64:v0.0.0-master_$Format:%h$")
--image-pull-policy string PullPolicy describes a policy for if/when to pull a container image. The default pull policy is IfNotPresent which will not pull an image if it already exists. (default "IfNotPresent") --image-pull-policy string PullPolicy describes a policy for if/when to pull a container image. The default pull policy is IfNotPresent which will not pull an image if it already exists. (default "IfNotPresent")
--image-pull-secrets string Provide secrets that can access the private registry. --image-pull-secrets string Provide secrets that can access the private registry.
--kubeconfig string Path to the kubeconfig file to use for CLI requests. --kubeconfig string Path to the kubeconfig file to use for CLI requests.
+1 -1
View File
@@ -167,7 +167,7 @@ VolumeScheduling=true|false (ALPHA - default=false)
--node-status-update-frequency duration Specifies how often kubelet posts node status to master. Note: be cautious when changing the constant, it must work with nodeMonitorGracePeriod in nodecontroller. (default 10s) --node-status-update-frequency duration Specifies how often kubelet posts node status to master. Note: be cautious when changing the constant, it must work with nodeMonitorGracePeriod in nodecontroller. (default 10s)
--oom-score-adj int32 The oom-score-adj value for kubelet process. Values must be within the range [-1000, 1000] (default -999) --oom-score-adj int32 The oom-score-adj value for kubelet process. Values must be within the range [-1000, 1000] (default -999)
--pod-cidr string The CIDR to use for pod IP addresses, only used in standalone mode. In cluster mode, this is obtained from the master. --pod-cidr string The CIDR to use for pod IP addresses, only used in standalone mode. In cluster mode, this is obtained from the master.
--pod-infra-container-image string The image whose network/ipc namespaces containers in each pod will use. (default "gcr.io/google_containers/pause-amd64:3.0") --pod-infra-container-image string The image whose network/ipc namespaces containers in each pod will use. (default "k8s.gcr.io/pause-amd64:3.0")
--pod-manifest-path string Path to the directory containing pod manifest files to run, or the path to a single pod manifest file. Files starting with dots will be ignored. --pod-manifest-path string Path to the directory containing pod manifest files to run, or the path to a single pod manifest file. Files starting with dots will be ignored.
--pods-per-core int32 Number of Pods per core that can run on this Kubelet. The total number of Pods on this Kubelet cannot exceed max-pods, so max-pods will be used if this calculation results in a larger number of Pods allowed on the Kubelet. A value of 0 disables this limit. --pods-per-core int32 Number of Pods per core that can run on this Kubelet. The total number of Pods on this Kubelet cannot exceed max-pods, so max-pods will be used if this calculation results in a larger number of Pods allowed on the Kubelet. A value of 0 disables this limit.
--port int32 The port for the Kubelet to serve on. (default 10250) --port int32 The port for the Kubelet to serve on. (default 10250)
@@ -59719,7 +59719,7 @@ Appears In:
<tbody> <tbody>
<tr> <tr>
<td>names <br /> <em>string array</em></td> <td>names <br /> <em>string array</em></td>
<td>Names by which this image is known. e.g. [&quot;gcr.io/google_containers/hyperkube:v1.0.7&quot;, &quot;dockerhub.io/google_containers/hyperkube:v1.0.7&quot;]</td> <td>Names by which this image is known. e.g. [&quot;k8s.gcr.io/hyperkube:v1.0.7&quot;, &quot;dockerhub.io/google_containers/hyperkube:v1.0.7&quot;]</td>
</tr> </tr>
<tr> <tr>
<td>sizeBytes <br /> <em>integer</em></td> <td>sizeBytes <br /> <em>integer</em></td>
@@ -35,7 +35,7 @@ HighAvailability=true|false (ALPHA - default=false)
SelfHosting=true|false (BETA - default=false) SelfHosting=true|false (BETA - default=false)
StoreCertsInSecrets=true|false (ALPHA - default=false) StoreCertsInSecrets=true|false (ALPHA - default=false)
SupportIPVSProxyMode=true|false (ALPHA - default=false) SupportIPVSProxyMode=true|false (ALPHA - default=false)
--image-repository string Choose a container registry to pull control plane images from (default "gcr.io/google_containers") --image-repository string Choose a container registry to pull control plane images from (default "k8s.gcr.io")
--kubeconfig string The KubeConfig file to use when talking to the cluster (default "/etc/kubernetes/admin.conf") --kubeconfig string The KubeConfig file to use when talking to the cluster (default "/etc/kubernetes/admin.conf")
--kubernetes-version string Choose a specific Kubernetes version for the control plane (default "stable-1.8") --kubernetes-version string Choose a specific Kubernetes version for the control plane (default "stable-1.8")
--pod-network-cidr string The range of IP addresses used for the Pod network --pod-network-cidr string The range of IP addresses used for the Pod network
@@ -24,7 +24,7 @@ HighAvailability=true|false (ALPHA - default=false)
SelfHosting=true|false (BETA - default=false) SelfHosting=true|false (BETA - default=false)
StoreCertsInSecrets=true|false (ALPHA - default=false) StoreCertsInSecrets=true|false (ALPHA - default=false)
SupportIPVSProxyMode=true|false (ALPHA - default=false) SupportIPVSProxyMode=true|false (ALPHA - default=false)
--image-repository string Choose a container registry to pull control plane images from (default "gcr.io/google_containers") --image-repository string Choose a container registry to pull control plane images from (default "k8s.gcr.io")
--kubeconfig string The KubeConfig file to use when talking to the cluster (default "/etc/kubernetes/admin.conf") --kubeconfig string The KubeConfig file to use when talking to the cluster (default "/etc/kubernetes/admin.conf")
--kubernetes-version string Choose a specific Kubernetes version for the control plane (default "stable-1.8") --kubernetes-version string Choose a specific Kubernetes version for the control plane (default "stable-1.8")
--service-cidr string The range of IP address used for service VIPs (default "10.96.0.0/12") --service-cidr string The range of IP address used for service VIPs (default "10.96.0.0/12")
@@ -18,7 +18,7 @@ kubeadm alpha phase addon kube-proxy
--apiserver-advertise-address string The IP address or DNS name the API server is accessible on --apiserver-advertise-address string The IP address or DNS name the API server is accessible on
--apiserver-bind-port int32 The port the API server is accessible on (default 6443) --apiserver-bind-port int32 The port the API server is accessible on (default 6443)
--config string Path to a kubeadm config file. WARNING: Usage of a configuration file is experimental! --config string Path to a kubeadm config file. WARNING: Usage of a configuration file is experimental!
--image-repository string Choose a container registry to pull control plane images from (default "gcr.io/google_containers") --image-repository string Choose a container registry to pull control plane images from (default "k8s.gcr.io")
--kubeconfig string The KubeConfig file to use when talking to the cluster (default "/etc/kubernetes/admin.conf") --kubeconfig string The KubeConfig file to use when talking to the cluster (default "/etc/kubernetes/admin.conf")
--kubernetes-version string Choose a specific Kubernetes version for the control plane (default "stable-1.8") --kubernetes-version string Choose a specific Kubernetes version for the control plane (default "stable-1.8")
--pod-network-cidr string The range of IP addresses used for the Pod network --pod-network-cidr string The range of IP addresses used for the Pod network
@@ -156,7 +156,7 @@ More information on custom arguments can be found here:
### Using custom images {#custom-images} ### Using custom images {#custom-images}
By default, kubeadm pulls images from `gcr.io/google_containers`, unless By default, kubeadm pulls images from `k8s.gcr.io`, unless
the requested Kubernetes version is a CI version. In this case, the requested Kubernetes version is a CI version. In this case,
`gcr.io/kubernetes-ci-images` is used. `gcr.io/kubernetes-ci-images` is used.
@@ -164,9 +164,9 @@ You can override this behavior by using [kubeadm with a configuration file](#con
Allowed customization are: Allowed customization are:
* To provide an alternative `imageRepository` to be used instead of * To provide an alternative `imageRepository` to be used instead of
`gcr.io/google_containers`. `k8s.gcr.io`.
* To provide a `unifiedControlPlaneImage` to be used instead of different images for control plane components. * To provide a `unifiedControlPlaneImage` to be used instead of different images for control plane components.
* To provide a specific `etcd.image` to be used instead of the image available at`gcr.io/google_containers`. * To provide a specific `etcd.image` to be used instead of the image available at`k8s.gcr.io`.
### Using custom certificates {#custom-certificates} ### Using custom certificates {#custom-certificates}
@@ -370,15 +370,15 @@ For running kubeadm without an internet connection you have to pre-pull the requ
| Image Name | v1.8 release branch version | v1.9 release branch version | | Image Name | v1.8 release branch version | v1.9 release branch version |
|----------------------------------------------------------|-----------------------------|-----------------------------| |----------------------------------------------------------|-----------------------------|-----------------------------|
| gcr.io/google_containers/kube-apiserver-${ARCH} | v1.8.x | v1.9.x | | k8s.gcr.io/kube-apiserver-${ARCH} | v1.8.x | v1.9.x |
| gcr.io/google_containers/kube-controller-manager-${ARCH} | v1.8.x | v1.9.x | | k8s.gcr.io/kube-controller-manager-${ARCH} | v1.8.x | v1.9.x |
| gcr.io/google_containers/kube-scheduler-${ARCH} | v1.8.x | v1.9.x | | k8s.gcr.io/kube-scheduler-${ARCH} | v1.8.x | v1.9.x |
| gcr.io/google_containers/kube-proxy-${ARCH} | v1.8.x | v1.9.x | | k8s.gcr.io/kube-proxy-${ARCH} | v1.8.x | v1.9.x |
| gcr.io/google_containers/etcd-${ARCH} | 3.0.17 | 3.1.10 | | k8s.gcr.io/etcd-${ARCH} | 3.0.17 | 3.1.10 |
| gcr.io/google_containers/pause-${ARCH} | 3.0 | 3.0 | | k8s.gcr.io/pause-${ARCH} | 3.0 | 3.0 |
| gcr.io/google_containers/k8s-dns-sidecar-${ARCH} | 1.14.5 | 1.14.7 | | k8s.gcr.io/k8s-dns-sidecar-${ARCH} | 1.14.5 | 1.14.7 |
| gcr.io/google_containers/k8s-dns-kube-dns-${ARCH} | 1.14.5 | 1.14.7 | | k8s.gcr.io/k8s-dns-kube-dns-${ARCH} | 1.14.5 | 1.14.7 |
| gcr.io/google_containers/k8s-dns-dnsmasq-nanny-${ARCH} | 1.14.5 | 1.14.7 | | k8s.gcr.io/k8s-dns-dnsmasq-nanny-${ARCH} | 1.14.5 | 1.14.7 |
Here `v1.8.x` means the "latest patch release of the v1.8 branch". Here `v1.8.x` means the "latest patch release of the v1.8 branch".
+1 -1
View File
@@ -5643,7 +5643,7 @@ Appears In <a href="#nodestatus-v1">NodeStatus</a> </aside>
<tbody> <tbody>
<tr> <tr>
<td>names <br /> <em>string array</em></td> <td>names <br /> <em>string array</em></td>
<td>Names by which this image is known. e.g. [&quot;gcr.io/google_containers/hyperkube:v1.0.7&quot;, &quot;dockerhub.io/google_containers/hyperkube:v1.0.7&quot;]</td> <td>Names by which this image is known. e.g. [&quot;k8s.gcr.io/hyperkube:v1.0.7&quot;, &quot;dockerhub.io/google_containers/hyperkube:v1.0.7&quot;]</td>
</tr> </tr>
<tr> <tr>
<td>sizeBytes <br /> <em>integer</em></td> <td>sizeBytes <br /> <em>integer</em></td>
+1 -1
View File
@@ -6169,7 +6169,7 @@ Appears In <a href="#nodestatus-v1-core">NodeStatus</a> </aside>
<tbody> <tbody>
<tr> <tr>
<td>names <br /> <em>string array</em></td> <td>names <br /> <em>string array</em></td>
<td>Names by which this image is known. e.g. [&quot;gcr.io/google_containers/hyperkube:v1.0.7&quot;, &quot;dockerhub.io/google_containers/hyperkube:v1.0.7&quot;]</td> <td>Names by which this image is known. e.g. [&quot;k8s.gcr.io/hyperkube:v1.0.7&quot;, &quot;dockerhub.io/google_containers/hyperkube:v1.0.7&quot;]</td>
</tr> </tr>
<tr> <tr>
<td>sizeBytes <br /> <em>integer</em></td> <td>sizeBytes <br /> <em>integer</em></td>
+1 -1
View File
@@ -7181,7 +7181,7 @@ Appears In:
<tbody> <tbody>
<tr> <tr>
<td>names <br /> <em>string array</em></td> <td>names <br /> <em>string array</em></td>
<td>Names by which this image is known. e.g. [&quot;gcr.io/google_containers/hyperkube:v1.0.7&quot;, &quot;dockerhub.io/google_containers/hyperkube:v1.0.7&quot;]</td> <td>Names by which this image is known. e.g. [&quot;k8s.gcr.io/hyperkube:v1.0.7&quot;, &quot;dockerhub.io/google_containers/hyperkube:v1.0.7&quot;]</td>
</tr> </tr>
<tr> <tr>
<td>sizeBytes <br /> <em>integer</em></td> <td>sizeBytes <br /> <em>integer</em></td>
@@ -9,7 +9,7 @@ metadata:
spec: spec:
containers: containers:
- name: master - name: master
image: gcr.io/google_containers/redis:v1 image: k8s.gcr.io/redis:v1
env: env:
- name: MASTER - name: MASTER
value: "true" value: "true"
@@ -42,9 +42,9 @@ spec:
serviceAccountName: cloud-controller-manager serviceAccountName: cloud-controller-manager
containers: containers:
- name: cloud-controller-manager - name: cloud-controller-manager
# for in-tree providers we use gcr.io/google_containers/cloud-controller-manager # for in-tree providers we use k8s.gcr.io/cloud-controller-manager
# this can be replaced with any other image for out-of-tree providers # this can be replaced with any other image for out-of-tree providers
image: gcr.io/google_containers/cloud-controller-manager:v1.8.0 image: k8s.gcr.io/cloud-controller-manager:v1.8.0
command: command:
- /usr/local/bin/cloud-controller-manager - /usr/local/bin/cloud-controller-manager
- --cloud-provider=<YOUR_CLOUD_PROVIDER> # Add your own cloud provider here! - --cloud-provider=<YOUR_CLOUD_PROVIDER> # Add your own cloud provider here!
@@ -13,7 +13,7 @@ spec:
spec: spec:
containers: containers:
- name: autoscaler - name: autoscaler
image: gcr.io/google_containers/cluster-proportional-autoscaler-amd64:1.0.0 image: k8s.gcr.io/cluster-proportional-autoscaler-amd64:1.0.0
resources: resources:
requests: requests:
cpu: "20m" cpu: "20m"
+1 -1
View File
@@ -7,4 +7,4 @@ metadata:
spec: spec:
containers: containers:
- name: pod-with-no-annotation-container - name: pod-with-no-annotation-container
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
+1 -1
View File
@@ -8,4 +8,4 @@ spec:
schedulerName: default-scheduler schedulerName: default-scheduler
containers: containers:
- name: pod-with-default-annotation-container - name: pod-with-default-annotation-container
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
+1 -1
View File
@@ -8,4 +8,4 @@ spec:
schedulerName: my-scheduler schedulerName: my-scheduler
containers: containers:
- name: pod-with-second-annotation-container - name: pod-with-second-annotation-container
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
@@ -94,7 +94,7 @@ metadata:
spec: spec:
containers: containers:
- name: test-pod - name: test-pod
image: gcr.io/google_containers/busybox:1.24 image: k8s.gcr.io/busybox:1.24
command: command:
- "/bin/sh" - "/bin/sh"
args: args:
@@ -34,7 +34,7 @@ broken states, and cannot recover except by being restarted. Kubernetes provides
liveness probes to detect and remedy such situations. liveness probes to detect and remedy such situations.
In this exercise, you create a Pod that runs a Container based on the In this exercise, you create a Pod that runs a Container based on the
`gcr.io/google_containers/busybox` image. Here is the configuration file for the Pod: `k8s.gcr.io/busybox` image. Here is the configuration file for the Pod:
{% include code.html language="yaml" file="exec-liveness.yaml" ghlink="/docs/tasks/configure-pod-container/exec-liveness.yaml" %} {% include code.html language="yaml" file="exec-liveness.yaml" ghlink="/docs/tasks/configure-pod-container/exec-liveness.yaml" %}
@@ -75,8 +75,8 @@ The output indicates that no liveness probes have failed yet:
FirstSeen LastSeen Count From SubobjectPath Type Reason Message FirstSeen LastSeen Count From SubobjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ ------- --------- -------- ----- ---- ------------- -------- ------ -------
24s 24s 1 {default-scheduler } Normal Scheduled Successfully assigned liveness-exec to worker0 24s 24s 1 {default-scheduler } Normal Scheduled Successfully assigned liveness-exec to worker0
23s 23s 1 {kubelet worker0} spec.containers{liveness} Normal Pulling pulling image "gcr.io/google_containers/busybox" 23s 23s 1 {kubelet worker0} spec.containers{liveness} Normal Pulling pulling image "k8s.gcr.io/busybox"
23s 23s 1 {kubelet worker0} spec.containers{liveness} Normal Pulled Successfully pulled image "gcr.io/google_containers/busybox" 23s 23s 1 {kubelet worker0} spec.containers{liveness} Normal Pulled Successfully pulled image "k8s.gcr.io/busybox"
23s 23s 1 {kubelet worker0} spec.containers{liveness} Normal Created Created container with docker id 86849c15382e; Security:[seccomp=unconfined] 23s 23s 1 {kubelet worker0} spec.containers{liveness} Normal Created Created container with docker id 86849c15382e; Security:[seccomp=unconfined]
23s 23s 1 {kubelet worker0} spec.containers{liveness} Normal Started Started container with docker id 86849c15382e 23s 23s 1 {kubelet worker0} spec.containers{liveness} Normal Started Started container with docker id 86849c15382e
``` ```
@@ -94,8 +94,8 @@ probes have failed, and the containers have been killed and recreated.
FirstSeen LastSeen Count From SubobjectPath Type Reason Message FirstSeen LastSeen Count From SubobjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ ------- --------- -------- ----- ---- ------------- -------- ------ -------
37s 37s 1 {default-scheduler } Normal Scheduled Successfully assigned liveness-exec to worker0 37s 37s 1 {default-scheduler } Normal Scheduled Successfully assigned liveness-exec to worker0
36s 36s 1 {kubelet worker0} spec.containers{liveness} Normal Pulling pulling image "gcr.io/google_containers/busybox" 36s 36s 1 {kubelet worker0} spec.containers{liveness} Normal Pulling pulling image "k8s.gcr.io/busybox"
36s 36s 1 {kubelet worker0} spec.containers{liveness} Normal Pulled Successfully pulled image "gcr.io/google_containers/busybox" 36s 36s 1 {kubelet worker0} spec.containers{liveness} Normal Pulled Successfully pulled image "k8s.gcr.io/busybox"
36s 36s 1 {kubelet worker0} spec.containers{liveness} Normal Created Created container with docker id 86849c15382e; Security:[seccomp=unconfined] 36s 36s 1 {kubelet worker0} spec.containers{liveness} Normal Created Created container with docker id 86849c15382e; Security:[seccomp=unconfined]
36s 36s 1 {kubelet worker0} spec.containers{liveness} Normal Started Started container with docker id 86849c15382e 36s 36s 1 {kubelet worker0} spec.containers{liveness} Normal Started Started container with docker id 86849c15382e
2s 2s 1 {kubelet worker0} spec.containers{liveness} Warning Unhealthy Liveness probe failed: cat: can't open '/tmp/healthy': No such file or directory 2s 2s 1 {kubelet worker0} spec.containers{liveness} Warning Unhealthy Liveness probe failed: cat: can't open '/tmp/healthy': No such file or directory
@@ -117,7 +117,7 @@ liveness-exec 1/1 Running 1 1m
## Define a liveness HTTP request ## Define a liveness HTTP request
Another kind of liveness probe uses an HTTP GET request. Here is the configuration Another kind of liveness probe uses an HTTP GET request. Here is the configuration
file for a Pod that runs a container based on the `gcr.io/google_containers/liveness` file for a Pod that runs a container based on the `k8s.gcr.io/liveness`
image. image.
{% include code.html language="yaml" file="http-liveness.yaml" ghlink="/docs/tasks/configure-pod-container/http-liveness.yaml" %} {% include code.html language="yaml" file="http-liveness.yaml" ghlink="/docs/tasks/configure-pod-container/http-liveness.yaml" %}
@@ -38,7 +38,7 @@ This page provides a series of usage examples demonstrating how to configure Pod
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:
# Define the environment variable # Define the environment variable
@@ -88,7 +88,7 @@ This page provides a series of usage examples demonstrating how to configure Pod
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: SPECIAL_LEVEL_KEY - name: SPECIAL_LEVEL_KEY
@@ -134,7 +134,7 @@ This page provides a series of usage examples demonstrating how to configure Pod
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" ]
envFrom: envFrom:
- configMapRef: - configMapRef:
@@ -161,7 +161,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", "echo $(SPECIAL_LEVEL_KEY) $(SPECIAL_TYPE_KEY)" ] command: [ "/bin/sh", "-c", "echo $(SPECIAL_LEVEL_KEY) $(SPECIAL_TYPE_KEY)" ]
env: env:
- name: SPECIAL_LEVEL_KEY - name: SPECIAL_LEVEL_KEY
@@ -214,7 +214,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", "ls /etc/config/" ] command: [ "/bin/sh", "-c", "ls /etc/config/" ]
volumeMounts: volumeMounts:
- name: config-volume - name: config-volume
@@ -248,7 +248,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","cat /etc/config/keys" ] command: [ "/bin/sh","-c","cat /etc/config/keys" ]
volumeMounts: volumeMounts:
- name: config-volume - name: config-volume
@@ -7,7 +7,7 @@ metadata:
spec: spec:
containers: containers:
- name: liveness - name: liveness
image: gcr.io/google_containers/busybox image: k8s.gcr.io/busybox
args: args:
- /bin/sh - /bin/sh
- -c - -c
@@ -7,7 +7,7 @@ metadata:
spec: spec:
containers: containers:
- name: liveness - name: liveness
image: gcr.io/google_containers/liveness image: k8s.gcr.io/liveness
args: args:
- /server - /server
livenessProbe: livenessProbe:
@@ -7,7 +7,7 @@ metadata:
spec: spec:
containers: containers:
- name: goproxy - name: goproxy
image: gcr.io/google_containers/goproxy:0.1 image: k8s.gcr.io/goproxy:0.1
ports: ports:
- containerPort: 8080 - containerPort: 8080
readinessProbe: readinessProbe:
@@ -66,7 +66,7 @@ probably debugging your own `Service` you can substitute your own details, or yo
can follow along and get a second data point. can follow along and get a second data point.
```shell ```shell
$ kubectl run hostnames --image=gcr.io/google_containers/serve_hostname \ $ kubectl run hostnames --image=k8s.gcr.io/serve_hostname \
--labels=app=hostnames \ --labels=app=hostnames \
--port=9376 \ --port=9376 \
--replicas=3 --replicas=3
@@ -93,7 +93,7 @@ spec:
spec: spec:
containers: containers:
- name: hostnames - name: hostnames
image: gcr.io/google_containers/serve_hostname image: k8s.gcr.io/serve_hostname
ports: ports:
- containerPort: 9376 - containerPort: 9376
protocol: TCP protocol: TCP
@@ -77,7 +77,7 @@ spec:
hostNetwork: true hostNetwork: true
containers: containers:
- name: node-problem-detector - name: node-problem-detector
image: gcr.io/google_containers/node-problem-detector:v0.1 image: k8s.gcr.io/node-problem-detector:v0.1
securityContext: securityContext:
privileged: true privileged: true
resources: resources:
@@ -149,7 +149,7 @@ spec:
hostNetwork: true hostNetwork: true
containers: containers:
- name: node-problem-detector - name: node-problem-detector
image: gcr.io/google_containers/node-problem-detector:v0.1 image: k8s.gcr.io/node-problem-detector:v0.1
securityContext: securityContext:
privileged: true privileged: true
resources: resources:
@@ -5,7 +5,7 @@ metadata:
spec: spec:
containers: containers:
- name: test-container - name: test-container
image: gcr.io/google_containers/busybox:1.24 image: k8s.gcr.io/busybox:1.24
command: [ "sh", "-c"] command: [ "sh", "-c"]
args: args:
- while true; do - while true; do
@@ -5,7 +5,7 @@ metadata:
spec: spec:
containers: containers:
- name: test-container - name: test-container
image: gcr.io/google_containers/busybox image: k8s.gcr.io/busybox
command: [ "sh", "-c"] command: [ "sh", "-c"]
args: args:
- while true; do - while true; do
@@ -5,7 +5,7 @@ metadata:
spec: spec:
containers: containers:
- name: client-container - name: client-container
image: gcr.io/google_containers/busybox:1.24 image: k8s.gcr.io/busybox:1.24
command: ["sh", "-c"] command: ["sh", "-c"]
args: args:
- while true; do - while true; do
@@ -12,7 +12,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"] command: ["sh", "-c"]
args: args:
- while true; do - while true; do
+3 -3
View File
@@ -36,13 +36,13 @@ spec:
containers: containers:
- -
name: gpu-container-1 name: gpu-container-1
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
resources: resources:
limits: limits:
alpha.kubernetes.io/nvidia-gpu: 2 # requesting 2 GPUs alpha.kubernetes.io/nvidia-gpu: 2 # requesting 2 GPUs
- -
name: gpu-container-2 name: gpu-container-2
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
resources: resources:
limits: limits:
alpha.kubernetes.io/nvidia-gpu: 3 # requesting 3 GPUs alpha.kubernetes.io/nvidia-gpu: 3 # requesting 3 GPUs
@@ -126,7 +126,7 @@ metadata:
spec: spec:
containers: containers:
- name: gpu-container-1 - name: gpu-container-1
image: gcr.io/google_containers/pause:2.0 image: k8s.gcr.io/pause:2.0
resources: resources:
limits: limits:
alpha.kubernetes.io/nvidia-gpu: 1 alpha.kubernetes.io/nvidia-gpu: 1
@@ -35,7 +35,7 @@ It defines an [index.php](/docs/user-guide/horizontal-pod-autoscaling/image/inde
First, we will start a deployment running the image and expose it as a service: First, we will start a deployment running the image and expose it as a service:
```shell ```shell
$ kubectl run php-apache --image=gcr.io/google_containers/hpa-example --requests=cpu=200m --expose --port=80 $ kubectl run php-apache --image=k8s.gcr.io/hpa-example --requests=cpu=200m --expose --port=80
service "php-apache" created service "php-apache" created
deployment "php-apache" created deployment "php-apache" created
``` ```
+1 -1
View File
@@ -28,7 +28,7 @@ version: "2"
services: services:
redis-master: redis-master:
image: gcr.io/google_containers/redis:e2e image: k8s.gcr.io/redis:e2e
ports: ports:
- "6379" - "6379"
+1 -1
View File
@@ -33,7 +33,7 @@ document. The examples use a small nginx webserver that echoes back the source
IP of requests it receives through an HTTP header. You can create it as follows: IP of requests it receives through an HTTP header. You can create it as follows:
```console ```console
$ kubectl run source-ip-app --image=gcr.io/google_containers/echoserver:1.4 $ kubectl run source-ip-app --image=k8s.gcr.io/echoserver:1.4
deployment "source-ip-app" created deployment "source-ip-app" created
``` ```
@@ -465,7 +465,7 @@ In one terminal window, patch the `web` StatefulSet to change the container
image again. image again.
```shell ```shell
kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"gcr.io/google_containers/nginx-slim:0.8"}]' kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"k8s.gcr.io/nginx-slim:0.8"}]'
statefulset "web" patched statefulset "web" patched
``` ```
@@ -522,9 +522,9 @@ Get the Pods to view their container images.
```shell{% raw %} ```shell{% raw %}
for p in 0 1 2; do kubectl get po web-$p --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'; echo; done for p in 0 1 2; do kubectl get po web-$p --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'; echo; done
gcr.io/google_containers/nginx-slim:0.8 k8s.gcr.io/nginx-slim:0.8
gcr.io/google_containers/nginx-slim:0.8 k8s.gcr.io/nginx-slim:0.8
gcr.io/google_containers/nginx-slim:0.8 k8s.gcr.io/nginx-slim:0.8
{% endraw %} {% endraw %}
``` ```
@@ -549,7 +549,7 @@ statefulset "web" patched
Patch the StatefulSet again to change the container's image. Patch the StatefulSet again to change the container's image.
```shell ```shell
kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"gcr.io/google_containers/nginx-slim:0.7"}]' kubectl patch statefulset web --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"k8s.gcr.io/nginx-slim:0.7"}]'
statefulset "web" patched statefulset "web" patched
``` ```
@@ -575,7 +575,7 @@ Get the Pod's container.
```shell{% raw %} ```shell{% raw %}
kubectl get po web-2 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}' kubectl get po web-2 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'
gcr.io/google_containers/nginx-slim:0.8 k8s.gcr.io/nginx-slim:0.8
{% endraw %} {% endraw %}
``` ```
@@ -610,7 +610,7 @@ Get the Pod's container.
```shell{% raw %} ```shell{% raw %}
kubectl get po web-2 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}' kubectl get po web-2 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'
gcr.io/google_containers/nginx-slim:0.7 k8s.gcr.io/nginx-slim:0.7
{% endraw %} {% endraw %}
``` ```
@@ -646,7 +646,7 @@ Get the `web-1` Pods container.
```shell{% raw %} ```shell{% raw %}
kubectl get po web-1 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}' kubectl get po web-1 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'
gcr.io/google_containers/nginx-slim:0.8 k8s.gcr.io/nginx-slim:0.8
{% endraw %} {% endraw %}
``` ```
`web-1` was restored to its original configuration because the Pod's ordinal `web-1` was restored to its original configuration because the Pod's ordinal
@@ -695,9 +695,9 @@ Get the Pod's containers.
```shell{% raw %} ```shell{% raw %}
for p in 0 1 2; do kubectl get po web-$p --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'; echo; done for p in 0 1 2; do kubectl get po web-$p --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}'; echo; done
gcr.io/google_containers/nginx-slim:0.7 k8s.gcr.io/nginx-slim:0.7
gcr.io/google_containers/nginx-slim:0.7 k8s.gcr.io/nginx-slim:0.7
gcr.io/google_containers/nginx-slim:0.7 k8s.gcr.io/nginx-slim:0.7
{% endraw %} {% endraw %}
``` ```
+1 -1
View File
@@ -29,7 +29,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
@@ -30,7 +30,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
@@ -68,7 +68,7 @@ spec:
containers: containers:
- name: kubernetes-zookeeper - name: kubernetes-zookeeper
imagePullPolicy: Always imagePullPolicy: Always
image: "gcr.io/google_containers/kubernetes-zookeeper:1.0-3.4.10" image: "k8s.gcr.io/kubernetes-zookeeper:1.0-3.4.10"
resources: resources:
requests: requests:
memory: "1Gi" memory: "1Gi"
@@ -18,7 +18,7 @@ spec:
spec: spec:
containers: containers:
- name: master - name: master
image: gcr.io/google_containers/redis:e2e # or just image: redis image: k8s.gcr.io/redis:e2e # or just image: redis
resources: resources:
requests: requests:
cpu: 100m cpu: 100m
+1 -1
View File
@@ -5,7 +5,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", "echo $(KUBE_CONFIG_1) $(KUBE_CONFIG_2)" ] command: [ "/bin/sh", "-c", "echo $(KUBE_CONFIG_1) $(KUBE_CONFIG_2)" ]
env: env:
- name: KUBE_CONFIG_1 - name: KUBE_CONFIG_1
+1 -1
View File
@@ -5,7 +5,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: KUBE_CONFIG_1 - name: KUBE_CONFIG_1
@@ -5,7 +5,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", "cat /etc/special-key" ] command: [ "/bin/sh", "-c", "cat /etc/special-key" ]
volumeMounts: volumeMounts:
- name: config-volume - name: config-volume
+1 -1
View File
@@ -5,7 +5,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", "cat /etc/config/path/to/special-key" ] command: [ "/bin/sh", "-c", "cat /etc/config/path/to/special-key" ]
volumeMounts: volumeMounts:
- name: config-volume - name: config-volume
@@ -5,7 +5,7 @@ metadata:
spec: spec:
containers: containers:
- name: test-container - name: test-container
image: gcr.io/google_containers/busybox:1.24 image: k8s.gcr.io/busybox:1.24
command: [ "/bin/sh", "-c", "env" ] command: [ "/bin/sh", "-c", "env" ]
resources: resources:
requests: requests:
+1 -1
View File
@@ -5,7 +5,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: MY_NODE_NAME - name: MY_NODE_NAME
@@ -5,7 +5,7 @@ metadata:
spec: spec:
containers: containers:
- name: client-container - name: client-container
image: gcr.io/google_containers/busybox:1.24 image: k8s.gcr.io/busybox:1.24
command: ["sh", "-c", "while true; do echo; if [[ -e /etc/cpu_limit ]]; then cat /etc/cpu_limit; fi; if [[ -e /etc/cpu_request ]]; then cat /etc/cpu_request; fi; if [[ -e /etc/mem_limit ]]; then cat /etc/mem_limit; fi; if [[ -e /etc/mem_request ]]; then cat /etc/mem_request; fi; sleep 5; done"] command: ["sh", "-c", "while true; do echo; if [[ -e /etc/cpu_limit ]]; then cat /etc/cpu_limit; fi; if [[ -e /etc/cpu_request ]]; then cat /etc/cpu_request; fi; if [[ -e /etc/mem_limit ]]; then cat /etc/mem_limit; fi; if [[ -e /etc/mem_request ]]; then cat /etc/mem_request; fi; sleep 5; done"]
resources: resources:
requests: requests:
@@ -12,7 +12,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"]
volumeMounts: volumeMounts:
- name: podinfo - name: podinfo

Some files were not shown because too many files have changed in this diff Show More