remove v1beta3 examples from getting started from scratch guide

This commit is contained in:
Mike Danese 2015-07-07 12:28:42 -07:00 committed by Mike Danese
parent 127fe8d4a5
commit 57f235a99f

View File

@ -509,13 +509,14 @@ If you are using the HTTPS approach, then set:
*TODO* document proxy-ssh setup.
#### Apiserver pod template
*TODO*: convert to version v1.
```json
{
"apiVersion": "v1beta3",
"kind": "Pod",
"metadata": {"name":"kube-apiserver"},
"apiVersion": "v1",
"metadata": {
"name": "kube-apiserver"
},
"spec": {
"hostNetwork": true,
"containers": [
@ -527,6 +528,30 @@ If you are using the HTTPS approach, then set:
"-c",
"/usr/local/bin/kube-apiserver $ARGS"
],
"ports": [
{
"name": "https",
"hostPort": 443,
"containerPort": 443
},
{
"name": "local",
"hostPort": 8080,
"containerPort": 8080
}
],
"volumeMounts": [
{
"name": "srvkube",
"mountPath": "/srv/kubernetes",
"readOnly": true
},
{
"name": "etcssl",
"mountPath": "/etc/ssl",
"readOnly": true
}
],
"livenessProbe": {
"httpGet": {
"path": "/healthz",
@ -534,36 +559,25 @@ If you are using the HTTPS approach, then set:
},
"initialDelaySeconds": 15,
"timeoutSeconds": 15
},
"ports":[
{ "name": "https",
"containerPort": 443,
"hostPort": 443},
{ "name": "local",
"containerPort": 8080,
"hostPort": 8080}
],
"volumeMounts": [
{ "name": "srvkube",
"mountPath": "/srv/kubernetes",
"readOnly": true},
{ "name": "etcssl",
"mountPath": "/etc/ssl",
"readOnly": true},
]
}
}
],
"volumes": [
{ "name": "srvkube",
{
"name": "srvkube",
"hostPath": {
"path": "/srv/kubernetes"}
"path": "/srv/kubernetes"
}
},
{ "name": "etcssl",
{
"name": "etcssl",
"hostPath": {
"path": "/etc/ssl"}
},
"path": "/etc/ssl"
}
}
]
}}
}
}
```
The `/etc/ssl` mount allows the apiserver to find the SSL root certs so it can
@ -604,14 +618,14 @@ Otherwise, you will need to manually create node objects.
### Scheduler
*TODO*: convert to version v1.
Complete this template for the scheduler pod:
```
```json
{
"apiVersion": "v1beta3",
"kind": "Pod",
"metadata": {"name":"kube-scheduler"},
"apiVersion": "v1",
"metadata": {
"name": "kube-scheduler"
},
"spec": {
"hostNetwork": true,
"containers": [
@ -630,10 +644,11 @@ Complete this template for the scheduler pod:
},
"initialDelaySeconds": 15,
"timeoutSeconds": 15
},
}
],
}}
}
]
}
}
```
Optionally, you may want to mount `/var/log` as well and redirect output there.
@ -656,11 +671,13 @@ Flags to consider using with controller manager.
- `--master=127.0.0.1:8080`
Template for controller manager pod:
```
```json
{
"apiVersion": "v1beta3",
"kind": "Pod",
"metadata": {"name":"kube-controller-manager"},
"apiVersion": "v1",
"metadata": {
"name": "kube-controller-manager"
},
"spec": {
"hostNetwork": true,
"containers": [
@ -672,6 +689,18 @@ Template for controller manager pod:
"-c",
"/usr/local/bin/kube-controller-manager $ARGS"
],
"volumeMounts": [
{
"name": "srvkube",
"mountPath": "/srv/kubernetes",
"readOnly": true
},
{
"name": "etcssl",
"mountPath": "/etc/ssl",
"readOnly": true
}
],
"livenessProbe": {
"httpGet": {
"path": "/healthz",
@ -679,28 +708,25 @@ Template for controller manager pod:
},
"initialDelaySeconds": 15,
"timeoutSeconds": 15
},
"volumeMounts": [
{ "name": "srvkube",
"mountPath": "/srv/kubernetes",
"readOnly": true},
{ "name": "etcssl",
"mountPath": "/etc/ssl",
"readOnly": true},
]
}
}
],
"volumes": [
{ "name": "srvkube",
{
"name": "srvkube",
"hostPath": {
"path": "/srv/kubernetes"}
"path": "/srv/kubernetes"
}
},
{ "name": "etcssl",
{
"name": "etcssl",
"hostPath": {
"path": "/etc/ssl"}
},
"path": "/etc/ssl"
}
}
]
}}
}
}
```