remove creationTimestamp fields from manifest examples

This commit is contained in:
Peter Rifel 2020-07-16 23:17:16 -05:00
parent 104c06f998
commit 1873b45e8b
No known key found for this signature in database
GPG Key ID: BC6469E5B16DB2B6
10 changed files with 52 additions and 73 deletions

View File

@ -34,7 +34,6 @@ You should now be able to edit and configure your bastion instance group.
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup kind: InstanceGroup
metadata: metadata:
creationTimestamp: "2017-01-05T13:37:07Z"
name: bastions name: bastions
spec: spec:
associatePublicIp: true associatePublicIp: true

View File

@ -685,11 +685,10 @@ kops edit ig nodes
An editor (whatever you have on the $EDITOR shell variable) will open with the following text: An editor (whatever you have on the $EDITOR shell variable) will open with the following text:
``` ```yaml
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup kind: InstanceGroup
metadata: metadata:
creationTimestamp: 2017-09-06T13:40:39Z
labels: labels:
kops.k8s.io/cluster: mycluster01.kopsclustertest.example.org kops.k8s.io/cluster: mycluster01.kopsclustertest.example.org
name: nodes name: nodes
@ -707,11 +706,10 @@ spec:
Let's change minSize and maxSize to "3" Let's change minSize and maxSize to "3"
``` ```yaml
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup kind: InstanceGroup
metadata: metadata:
creationTimestamp: 2017-09-06T13:40:39Z
labels: labels:
kops.k8s.io/cluster: mycluster01.kopsclustertest.example.org kops.k8s.io/cluster: mycluster01.kopsclustertest.example.org
name: nodes name: nodes

View File

@ -142,11 +142,10 @@ kops create instancegroup bastions --role Bastion --subnet utility-us-east-1a --
You'll see the following output in your editor when you can change your bastion group size and add more networks. You'll see the following output in your editor when you can change your bastion group size and add more networks.
```bash ```yaml
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup kind: InstanceGroup
metadata: metadata:
creationTimestamp: null
name: bastions name: bastions
spec: spec:
image: kope.io/k8s-1.7-debian-jessie-amd64-hvm-ebs-2017-07-28 image: kope.io/k8s-1.7-debian-jessie-amd64-hvm-ebs-2017-07-28
@ -320,11 +319,10 @@ kops edit ig bastions --name ${NAME}
And change minSize/maxSize to 3 (3 instances) and add more subnets: And change minSize/maxSize to 3 (3 instances) and add more subnets:
```bash ```yaml
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup kind: InstanceGroup
metadata: metadata:
creationTimestamp: 2017-08-28T17:05:23Z
labels: labels:
kops.k8s.io/cluster: privatekopscluster.k8s.local kops.k8s.io/cluster: privatekopscluster.k8s.local
name: bastions name: bastions

View File

@ -59,52 +59,53 @@ objects on a kubernetes cluster.
You can see the details of your Cluster object by doing: You can see the details of your Cluster object by doing:
> kops get cluster --state ${KOPS_STATE_STORE}/ simple.k8s.local -oyaml `kops get cluster --state ${KOPS_STATE_STORE}/ simple.k8s.local -oyaml`
apiVersion: kops.k8s.io/v1alpha2 ```yaml
kind: Cluster apiVersion: kops.k8s.io/v1alpha2
metadata: kind: Cluster
creationTimestamp: 2017-10-03T05:07:27Z metadata:
name: simple.k8s.local name: simple.k8s.local
spec: spec:
api: api:
loadBalancer: loadBalancer:
type: Public type: Public
authorization: authorization:
alwaysAllow: {} alwaysAllow: {}
channel: stable channel: stable
cloudProvider: gce cloudProvider: gce
configBase: gs://kubernetes-clusters/simple.k8s.local configBase: gs://kubernetes-clusters/simple.k8s.local
etcdClusters: etcdClusters:
- etcdMembers: - etcdMembers:
- instanceGroup: master-us-central1-a - instanceGroup: master-us-central1-a
name: a name: a
name: main name: main
- etcdMembers: - etcdMembers:
- instanceGroup: master-us-central1-a - instanceGroup: master-us-central1-a
name: a name: a
name: events name: events
iam: iam:
legacy: false legacy: false
kubernetesApiAccess: kubernetesApiAccess:
- 0.0.0.0/0 - 0.0.0.0/0
kubernetesVersion: 1.7.2 kubernetesVersion: 1.7.2
masterPublicName: api.simple.k8s.local masterPublicName: api.simple.k8s.local
networking: networking:
kubenet: {} kubenet: {}
nonMasqueradeCIDR: 100.64.0.0/10 nonMasqueradeCIDR: 100.64.0.0/10
project: my-gce-project project: my-gce-project
sshAccess: sshAccess:
- 0.0.0.0/0 - 0.0.0.0/0
subnets: subnets:
- name: us-central1 - name: us-central1
region: us-central1 region: us-central1
type: Public type: Public
topology: topology:
dns: dns:
type: Public type: Public
masters: public masters: public
nodes: public nodes: public
```
Similarly, you can also see your InstanceGroups using: Similarly, you can also see your InstanceGroups using:

View File

@ -108,7 +108,6 @@ After you're finished editing, your cluster spec should look something like this
```yaml ```yaml
metadata: metadata:
creationTimestamp: "2016-06-27T14:23:34Z"
name: ${CLUSTER_NAME} name: ${CLUSTER_NAME}
spec: spec:
cloudProvider: aws cloudProvider: aws

View File

@ -60,7 +60,6 @@ The following is the contents of the exported YAML file.
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: Cluster kind: Cluster
metadata: metadata:
creationTimestamp: 2017-05-04T23:21:47Z
name: k8s.example.com name: k8s.example.com
spec: spec:
api: api:
@ -137,7 +136,6 @@ spec:
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup kind: InstanceGroup
metadata: metadata:
creationTimestamp: 2017-05-04T23:21:48Z
labels: labels:
kops.k8s.io/cluster: k8s.example.com kops.k8s.io/cluster: k8s.example.com
name: bastions name: bastions
@ -158,7 +156,6 @@ spec:
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup kind: InstanceGroup
metadata: metadata:
creationTimestamp: 2017-05-04T23:21:47Z
labels: labels:
kops.k8s.io/cluster: k8s.example.com kops.k8s.io/cluster: k8s.example.com
name: master-us-east-2d name: master-us-east-2d
@ -177,7 +174,6 @@ spec:
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup kind: InstanceGroup
metadata: metadata:
creationTimestamp: 2017-05-04T23:21:47Z
labels: labels:
kops.k8s.io/cluster: k8s.example.com kops.k8s.io/cluster: k8s.example.com
name: master-us-east-2b name: master-us-east-2b
@ -196,7 +192,6 @@ spec:
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup kind: InstanceGroup
metadata: metadata:
creationTimestamp: 2017-05-04T23:21:48Z
labels: labels:
kops.k8s.io/cluster: k8s.example.com kops.k8s.io/cluster: k8s.example.com
name: master-us-east-2c name: master-us-east-2c
@ -215,7 +210,6 @@ spec:
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup kind: InstanceGroup
metadata: metadata:
creationTimestamp: 2017-05-04T23:21:48Z
labels: labels:
kops.k8s.io/cluster: k8s.example.com kops.k8s.io/cluster: k8s.example.com
name: nodes name: nodes
@ -239,7 +233,6 @@ With the above YAML file, a user can add configurations that are not available v
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup kind: InstanceGroup
metadata: metadata:
creationTimestamp: 2017-05-04T23:21:48Z
labels: labels:
kops.k8s.io/cluster: k8s.example.com kops.k8s.io/cluster: k8s.example.com
name: my-crazy-big-nodes name: my-crazy-big-nodes
@ -292,7 +285,6 @@ Please refer to the rolling-update [documentation](cli/kops_rolling-update_clust
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: Cluster kind: Cluster
metadata: metadata:
creationTimestamp: 2017-05-04T23:21:47Z
name: k8s.example.com name: k8s.example.com
spec: spec:
api: api:
@ -325,7 +317,6 @@ This command prints the entire YAML configuration. But _do not_ use the full doc
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup kind: InstanceGroup
metadata: metadata:
creationTimestamp: 2017-05-04T23:21:48Z
name: foo name: foo
spec: spec:
``` ```

View File

@ -19,7 +19,6 @@ When launching into a shared VPC, the VPC & the Internet Gateway will be reused.
```yaml ```yaml
metadata: metadata:
creationTimestamp: "2016-06-27T14:23:34Z"
name: ${CLUSTER_NAME} name: ${CLUSTER_NAME}
spec: spec:
cloudProvider: aws cloudProvider: aws
@ -73,7 +72,6 @@ AWS now allows you to add more CIDRs to a VPC, the param `additionalNetworkCIDRs
```yaml ```yaml
metadata: metadata:
creationTimestamp: "2016-06-27T14:23:34Z"
name: ${CLUSTER_NAME} name: ${CLUSTER_NAME}
spec: spec:
cloudProvider: aws cloudProvider: aws
@ -122,7 +120,6 @@ spec:
```yaml ```yaml
metadata: metadata:
creationTimestamp: "2016-06-27T14:23:34Z"
name: ${CLUSTER_NAME} name: ${CLUSTER_NAME}
spec: spec:
cloudProvider: aws cloudProvider: aws

View File

@ -20,7 +20,6 @@ Example:
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: Cluster kind: Cluster
metadata: metadata:
creationTimestamp: "2016-12-10T22:42:27Z"
name: mycluster.example.com name: mycluster.example.com
spec: spec:
api: api:
@ -34,7 +33,6 @@ spec:
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup kind: InstanceGroup
metadata: metadata:
creationTimestamp: "2017-01-01T00:00:00Z"
labels: labels:
kops.k8s.io/cluster: mycluster.example.com kops.k8s.io/cluster: mycluster.example.com
name: master-us-test-1a name: master-us-test-1a

View File

@ -13,7 +13,7 @@ Upgrading kubernetes is similar to changing the image on an InstanceGroup, excep
controlled at the cluster level. So instead of `kops edit ig <name>`, we `kops edit cluster`, and change the controlled at the cluster level. So instead of `kops edit ig <name>`, we `kops edit cluster`, and change the
`kubernetesVersion` field. `kops edit cluster` will open your editor with the cluster, similar to: `kubernetesVersion` field. `kops edit cluster` will open your editor with the cluster, similar to:
``` ```yaml
# Please edit the object below. Lines beginning with a '#' will be ignored, # Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be # and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures. # reopened with the relevant failures.
@ -21,7 +21,6 @@ controlled at the cluster level. So instead of `kops edit ig <name>`, we `kops
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: Cluster kind: Cluster
metadata: metadata:
creationTimestamp: 2017-10-04T03:52:25Z
name: simple.k8s.local name: simple.k8s.local
spec: spec:
api: api:

View File

@ -80,11 +80,10 @@ Let's change the number of nodes to 3. We'll edit the InstanceGroup configurati
should be very familiar to you if you've used `kubectl edit`). `kops edit ig nodes` will open should be very familiar to you if you've used `kubectl edit`). `kops edit ig nodes` will open
the InstanceGroup in your editor, looking a bit like this: the InstanceGroup in your editor, looking a bit like this:
```YAML ```yaml
apiVersion: kops.k8s.io/v1alpha2 apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup kind: InstanceGroup
metadata: metadata:
creationTimestamp: 2017-10-03T15:17:31Z
labels: labels:
kops.k8s.io/cluster: simple.k8s.local kops.k8s.io/cluster: simple.k8s.local
name: nodes name: nodes