From 37c3ac37846826947bf31ffb7389847e86243a6d Mon Sep 17 00:00:00 2001 From: Ian Hoegen Date: Tue, 13 Feb 2018 13:34:48 -0800 Subject: [PATCH] Add max-requests-inflight flag, along with docs --- docs/apireference/build/index.html | 241 +- docs/apireference/build/manifest.json | 6 + docs/apireference/build/navData.js | 2 +- docs/cluster_spec.md | 10 + nodeup/pkg/model/kube_apiserver_test.go | 14 + pkg/apis/kops/componentconfig.go | 2 + pkg/apis/kops/v1alpha1/componentconfig.go | 2 + .../kops/v1alpha1/zz_generated.conversion.go | 2 + pkg/apis/kops/v1alpha2/componentconfig.go | 2 + .../kops/v1alpha2/zz_generated.conversion.go | 2 + pkg/openapi/openapi_generated.go | 3836 ++++++++++++++--- 11 files changed, 3415 insertions(+), 704 deletions(-) diff --git a/docs/apireference/build/index.html b/docs/apireference/build/index.html index 603cb3d5a8..d1f4ca6100 100644 --- a/docs/apireference/build/index.html +++ b/docs/apireference/build/index.html @@ -11,7 +11,7 @@ - +
  • example

kops

@@ -21,12 +21,70 @@

-

-apiVersion: kops/v1alpha2
-kind: Cluster
-metadata:
-  name: cluster-example
-spec:
+

+apiVersion: kops/v1alpha2
+kind: Cluster
+metadata:
+  creationTimestamp: "2019-12-10T22:42:27Z"
+  name: test.example.com
+spec:
+  api:
+    loadBalancer:
+      type: Public
+      additionalSecurityGroups:
+      - sg-exampleid3
+      - sg-exampleid4
+  authorization:
+    rbac: {}
+  kubernetesApiAccess:
+  - 0.0.0.0/0
+  channel: stable
+  cloudProvider: aws
+  cloudLabels:
+    Owner: John Doe
+    foo/bar: fib+baz
+  configBase: s3://test.example.com/test.example.com
+  etcdClusters:
+  - etcdMembers:
+    - instanceGroup: master-us-test-1a
+      name: us-test-1a
+    name: main
+    version: 3.0.17
+  - etcdMembers:
+    - instanceGroup: master-us-test-1a
+      name: us-test-1a
+    name: events
+    version: 3.0.17
+  kubeAPIServer:
+    serviceNodePortRange: 28000-32767
+  kubernetesVersion: 1.8.5
+  masterInternalName: api.internal.test.example.com
+  masterPublicName: api.test.example.com
+  networkCIDR: 172.20.0.0/16
+  networkID: vpc-12345678
+  networking:
+    weave: 
+      mtu: 8912
+  nodePortAccess:
+  - 1.2.3.4/32
+  - 10.20.30.0/24
+  nonMasqueradeCIDR: 100.64.0.0/10
+  sshAccess:
+  - 0.0.0.0/0
+  subnets:
+  - cidr: 172.20.32.0/19
+    id: subnet-12345678
+    name: us-test-1a
+    type: Public
+    zone: us-test-1a
+  - cidr: 172.20.4.0/22
+    name: utility-us-test-1a
+    type: Utility
+    zone: us-test-1a
+    id: subnet-12345679
+  topology:
+    masters: private
+    nodes: private
 
@@ -227,7 +285,7 @@ Appears In: - + @@ -259,7 +317,7 @@ Appears In: - + @@ -286,6 +344,10 @@ Appears In: + + + + @@ -327,12 +389,33 @@ Appears In:

-

-apiVersion: kops/v1alpha2
-kind: InstanceGroup
-metadata:
-  name: instancegroup-example
-spec:
+

+apiVersion: kops/v1alpha2
+kind: InstanceGroup
+metadata:
+  creationTimestamp: null
+  labels:
+    kops.k8s.io/cluster: test.aws.k8spro.com
+  name: nodes
+spec:
+  image: kope.io/k8s-1.8-debian-jessie-amd64-hvm-ebs-2017-12-02
+  machineType: t2.medium
+  maxSize: 2
+  minSize: 2
+  minPrice: "0.2"
+  cloudLabels:
+    team: me
+    project: ion
+  nodeLabels:
+    kops.k8s.io/instancegroup: nodes
+  role: Node
+  rootVolumeSize: 200
+  rootVolumeOptimization: true
+  subnets:
+  - us-west-2a
+  taints:
+  - dedicated=gpu:NoSchedule
+  - team=search:PreferNoSchedule
 
kubernetesVersion
string
The version of kubernetes to install (optional, and can be a "spec" like stable)The version of kubernetes to install (optional, and can be a "spec" like stable)
masterInternalName
string
nonMasqueradeCIDR
string
MasterIPRange string json:",omitempty" NonMasqueradeCIDR is the CIDR for the internal k8s network (on which pods & services live) It cannot overlap ServiceClusterIPRangeMasterIPRange string json:",omitempty" NonMasqueradeCIDR is the CIDR for the internal k8s network (on which pods & services live) It cannot overlap ServiceClusterIPRange
project
string
Configuration of subnets we are targeting
target
TargetSpec
Target allows for us to nest extra config for targets such as terraform
topology
TopologySpec
Topology defines the type of network topology to use on the cluster - default public This is heavily weighted towards AWS for the time being, but should also be agnostic enough to port out to GCE later if needed
@@ -617,7 +700,7 @@ Appears In: - + @@ -645,7 +728,7 @@ Appears In: - +
group
string
group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale".group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale".
kind
string
version
string
version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".
@@ -1440,7 +1523,7 @@ Appears In: orphanDependents
boolean -Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. +Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. preconditions
Preconditions @@ -1448,7 +1531,7 @@ Appears In: propagationPolicy
string -Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. +Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. @@ -1515,11 +1598,11 @@ Appears In: logDriver
string -LogDriver is the defailt driver for container logs (default "json-file") +LogDriver is the defailt driver for container logs (default "json-file") logLevel
string -LogLevel is the logging level ("debug", "info", "warn", "error", "fatal") (default "info") +LogLevel is the logging level ("debug", "info", "warn", "error", "fatal") (default "info") logOpt
string array @@ -1677,6 +1760,10 @@ Appears In: HeartbeatInterval is the time (in milliseconds) for an etcd heartbeat interval +image
string +Image is the etcd docker image to use. Setting this will ignore the Version specified. + + leaderElectionTimeout
Duration LeaderElectionTimeout is the time (in milliseconds) for an etcd leader election timeout @@ -1993,7 +2080,7 @@ Appears In: -

GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility.

+

GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility.