Updating docs/ to v1
This commit is contained in:
parent
1bb3ed53ee
commit
db372e1f64
|
|
@ -348,7 +348,7 @@ No other variables are defined.
|
||||||
Notice the `$(var)` syntax.
|
Notice the `$(var)` syntax.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: expansion-pod
|
name: expansion-pod
|
||||||
|
|
@ -366,7 +366,7 @@ spec:
|
||||||
#### In a pod: building a URL using downward API
|
#### In a pod: building a URL using downward API
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: expansion-pod
|
name: expansion-pod
|
||||||
|
|
|
||||||
|
|
@ -231,7 +231,7 @@ OpenShift creates a Namespace in Kubernetes
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"apiVersion":"v1beta3",
|
"apiVersion":"v1",
|
||||||
"kind": "Namespace",
|
"kind": "Namespace",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "development",
|
"name": "development",
|
||||||
|
|
@ -256,7 +256,7 @@ User deletes the Namespace in Kubernetes, and Namespace now has following state:
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"apiVersion":"v1beta3",
|
"apiVersion":"v1",
|
||||||
"kind": "Namespace",
|
"kind": "Namespace",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "development",
|
"name": "development",
|
||||||
|
|
@ -281,7 +281,7 @@ removing *kubernetes* from the list of finalizers:
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"apiVersion":"v1beta3",
|
"apiVersion":"v1",
|
||||||
"kind": "Namespace",
|
"kind": "Namespace",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "development",
|
"name": "development",
|
||||||
|
|
@ -309,7 +309,7 @@ This results in the following state:
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
"apiVersion":"v1beta3",
|
"apiVersion":"v1",
|
||||||
"kind": "Namespace",
|
"kind": "Namespace",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "development",
|
"name": "development",
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ An administrator provisions storage by posting PVs to the API. Various way to a
|
||||||
POST:
|
POST:
|
||||||
|
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: pv0001
|
name: pv0001
|
||||||
spec:
|
spec:
|
||||||
|
|
@ -128,7 +128,7 @@ The user must be within a namespace to create PVCs.
|
||||||
|
|
||||||
POST:
|
POST:
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: myclaim-1
|
name: myclaim-1
|
||||||
spec:
|
spec:
|
||||||
|
|
@ -179,7 +179,7 @@ The claim holder owns the claim and its data for as long as the claim exists. T
|
||||||
POST:
|
POST:
|
||||||
|
|
||||||
kind: Pod
|
kind: Pod
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: mypod
|
name: mypod
|
||||||
spec:
|
spec:
|
||||||
|
|
|
||||||
16
secrets.md
16
secrets.md
|
|
@ -394,7 +394,7 @@ To create a pod that uses an ssh key stored as a secret, we first need to create
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"kind": "Secret",
|
"kind": "Secret",
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "ssh-key-secret"
|
"name": "ssh-key-secret"
|
||||||
},
|
},
|
||||||
|
|
@ -414,7 +414,7 @@ Now we can create a pod which references the secret with the ssh key and consume
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"kind": "Pod",
|
"kind": "Pod",
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "secret-test-pod",
|
"name": "secret-test-pod",
|
||||||
"labels": {
|
"labels": {
|
||||||
|
|
@ -464,12 +464,12 @@ The secrets:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1",
|
||||||
"kind": "List",
|
"kind": "List",
|
||||||
"items":
|
"items":
|
||||||
[{
|
[{
|
||||||
"kind": "Secret",
|
"kind": "Secret",
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "prod-db-secret"
|
"name": "prod-db-secret"
|
||||||
},
|
},
|
||||||
|
|
@ -480,7 +480,7 @@ The secrets:
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Secret",
|
"kind": "Secret",
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "test-db-secret"
|
"name": "test-db-secret"
|
||||||
},
|
},
|
||||||
|
|
@ -496,12 +496,12 @@ The pods:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1",
|
||||||
"kind": "List",
|
"kind": "List",
|
||||||
"items":
|
"items":
|
||||||
[{
|
[{
|
||||||
"kind": "Pod",
|
"kind": "Pod",
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "prod-db-client-pod",
|
"name": "prod-db-client-pod",
|
||||||
"labels": {
|
"labels": {
|
||||||
|
|
@ -534,7 +534,7 @@ The pods:
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Pod",
|
"kind": "Pod",
|
||||||
"apiVersion": "v1beta3",
|
"apiVersion": "v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "test-db-client-pod",
|
"name": "test-db-client-pod",
|
||||||
"labels": {
|
"labels": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue