Code change:
<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks! If the matter is security related, please disclose it privately via --What happened: I am testing API Priority and Fairness. I launched it like this: After the logging said the cluster is running and told me how to set KUBECONFIG, I did so in another shell and went looking for FlowSchema objects. But kubectl erroneously told me there is no such thing. However, looking in the kube-apiserver log shows flowschemas and prioritylevelconfigurations being read and written; for example: Also, I am able to read them with against the insecure port. Interestingly, the kube-apiserver log also includes this complaint: I will attach the kube-apiserver log. What you expected to happen: I expected to list them. How to reproduce it (as minimally and precisely as possible): I think the report above is pretty minimal. Anything else we need to know?: Environment: Kubernetes version (use ): this is the branch, git commit 916edd922e528f2f27542d3ca5967ca11fe153f8Cloud provider or hardware configuration: bare metal, intel, 16 "CPUs", 64 GB of memory OS (e.g: ): 18.04.2 LTS (Bionic Beaver) Kernel (e.g. ): Linux mjs-dev-1 4.15.0-74-generic -Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x8664 x8664 x86_64 GNU/Linux Install tools: hack/local-up- Network plugin and version (if this is a network-related bug): Others: Docker version 18.09.7 go version go1.13.4 linux/amd64
/sig api-machinery
/cc /cc /cc /cc
/assign
the "" API group is not included in the list of known groups to register at startup: That means resources inside that group will not appear in discovery, and clients like kubectl will not know how to find them.
You can see all resources visible via discovery by running
just as said, for now we have to manually create an apiservice into the cluster to get kubectl work. i dont think we're adding this to the list until the beta stage, can we make an exception for the case?
It is fine to add alpha things to the list I linked so they get created automatically if needed. They only get registered if the relevant runtime-config is enabled.
Interrupts control plane upgrade in lazy scenario where it's assumed dns name isn't changed properly to active node or or single node control plane
oh cool actually it succeeds on the second main node but the kube apiserver pod doesnt start
the hacky way being to adjust that api creation based on this?
And I removed the flags too
Wait what is this? This was to my api manifest during kubeadm upgrade?

Related discussion:
text: // can reasonably expect seems questionable. {Group: "extensions", Version: "v1beta1"}: {group: 17900, version: 1}, // to my knowledge, nothing below here collides <del> {Group: "apps", Version: "v1"}:                              {group: 17800, version: 15}, {Group: "events.k8s.io", Version: "v1beta1"}:                {group: 17750, version: 5}, {Group: "authentication.k8s.io", Version: "v1"}:             {group: 17700, version: 15}, {Group: "authentication.k8s.io", Version: "v1beta1"}:        {group: 17700, version: 9}, {Group: "authorization.k8s.io", Version: "v1"}:              {group: 17600, version: 15}, {Group: "authorization.k8s.io", Version: "v1beta1"}:         {group: 17600, version: 9}, {Group: "autoscaling", Version: "v1"}:                       {group: 17500, version: 15}, {Group: "autoscaling", Version: "v2beta1"}:                  {group: 17500, version: 9}, {Group: "autoscaling", Version: "v2beta2"}:                  {group: 17500, version: 1}, {Group: "batch", Version: "v1"}:                             {group: 17400, version: 15}, {Group: "batch", Version: "v1beta1"}:                        {group: 17400, version: 9}, {Group: "batch", Version: "v2alpha1"}:                       {group: 17400, version: 9}, {Group: "certificates.k8s.io", Version: "v1beta1"}:          {group: 17300, version: 9}, {Group: "networking.k8s.io", Version: "v1"}:                 {group: 17200, version: 15}, {Group: "networking.k8s.io", Version: "v1beta1"}:            {group: 17200, version: 9}, {Group: "policy", Version: "v1beta1"}:                       {group: 17100, version: 9}, {Group: "rbac.authorization.k8s.io", Version: "v1"}:         {group: 17000, version: 15}, {Group: "rbac.authorization.k8s.io", Version: "v1beta1"}:    {group: 17000, version: 12}, {Group: "rbac.authorization.k8s.io", Version: "v1alpha1"}:   {group: 17000, version: 9}, {Group: "settings.k8s.io", Version: "v1alpha1"}:             {group: 16900, version: 9}, {Group: "storage.k8s.io", Version: "v1"}:                    {group: 16800, version: 15}, {Group: "storage.k8s.io", Version: "v1beta1"}:               {group: 16800, version: 9}, {Group: "storage.k8s.io", Version: "v1alpha1"}:              {group: 16800, version: 1}, {Group: "apiextensions.k8s.io", Version: "v1"}:              {group: 16700, version: 15}, {Group: "apiextensions.k8s.io", Version: "v1beta1"}:         {group: 16700, version: 9}, {Group: "admissionregistration.k8s.io", Version: "v1"}:      {group: 16700, version: 15}, {Group: "admissionregistration.k8s.io", Version: "v1beta1"}: {group: 16700, version: 12}, {Group: "scheduling.k8s.io", Version: "v1"}:                 {group: 16600, version: 15}, {Group: "scheduling.k8s.io", Version: "v1beta1"}:            {group: 16600, version: 12}, {Group: "scheduling.k8s.io", Version: "v1alpha1"}:           {group: 16600, version: 9}, {Group: "coordination.k8s.io", Version: "v1"}:               {group: 16500, version: 15}, {Group: "coordination.k8s.io", Version: "v1beta1"}:          {group: 16500, version: 9}, {Group: "auditregistration.k8s.io", Version: "v1alpha1"}:    {group: 16400, version: 1}, {Group: "node.k8s.io", Version: "v1alpha1"}:                 {group: 16300, version: 1}, {Group: "node.k8s.io", Version: "v1beta1"}:                  {group: 16300, version: 9}, {Group: "discovery.k8s.io", Version: "v1beta1"}:             {group: 16200, version: 12}, {Group: "discovery.k8s.io", Version: "v1alpha1"}:            {group: 16200, version: 9}, </del> <ins> {Group: "apps", Version: "v1"}:                               {group: 17800, version: 15}, {Group: "events.k8s.io", Version: "v1beta1"}:                 {group: 17750, version: 5}, {Group: "authentication.k8s.io", Version: "v1"}:              {group: 17700, version: 15}, {Group: "authentication.k8s.io", Version: "v1beta1"}:         {group: 17700, version: 9}, {Group: "authorization.k8s.io", Version: "v1"}:               {group: 17600, version: 15}, {Group: "authorization.k8s.io", Version: "v1beta1"}:          {group: 17600, version: 9}, {Group: "autoscaling", Version: "v1"}:                        {group: 17500, version: 15}, {Group: "autoscaling", Version: "v2beta1"}:                   {group: 17500, version: 9}, {Group: "autoscaling", Version: "v2beta2"}:                   {group: 17500, version: 1}, {Group: "batch", Version: "v1"}:                              {group: 17400, version: 15}, {Group: "batch", Version: "v1beta1"}:                         {group: 17400, version: 9}, {Group: "batch", Version: "v2alpha1"}:                        {group: 17400, version: 9}, {Group: "certificates.k8s.io", Version: "v1beta1"}:           {group: 17300, version: 9}, {Group: "networking.k8s.io", Version: "v1"}:                  {group: 17200, version: 15}, {Group: "networking.k8s.io", Version: "v1beta1"}:             {group: 17200, version: 9}, {Group: "policy", Version: "v1beta1"}:                        {group: 17100, version: 9}, {Group: "rbac.authorization.k8s.io", Version: "v1"}:          {group: 17000, version: 15}, {Group: "rbac.authorization.k8s.io", Version: "v1beta1"}:     {group: 17000, version: 12}, {Group: "rbac.authorization.k8s.io", Version: "v1alpha1"}:    {group: 17000, version: 9}, {Group: "settings.k8s.io", Version: "v1alpha1"}:              {group: 16900, version: 9}, {Group: "storage.k8s.io", Version: "v1"}:                     {group: 16800, version: 15}, {Group: "storage.k8s.io", Version: "v1beta1"}:                {group: 16800, version: 9}, {Group: "storage.k8s.io", Version: "v1alpha1"}:               {group: 16800, version: 1}, {Group: "apiextensions.k8s.io", Version: "v1"}:               {group: 16700, version: 15}, {Group: "apiextensions.k8s.io", Version: "v1beta1"}:          {group: 16700, version: 9}, {Group: "admissionregistration.k8s.io", Version: "v1"}:       {group: 16700, version: 15}, {Group: "admissionregistration.k8s.io", Version: "v1beta1"}:  {group: 16700, version: 12}, {Group: "scheduling.k8s.io", Version: "v1"}:                  {group: 16600, version: 15}, {Group: "scheduling.k8s.io", Version: "v1beta1"}:             {group: 16600, version: 12}, {Group: "scheduling.k8s.io", Version: "v1alpha1"}:            {group: 16600, version: 9}, {Group: "coordination.k8s.io", Version: "v1"}:                {group: 16500, version: 15}, {Group: "coordination.k8s.io", Version: "v1beta1"}:           {group: 16500, version: 9}, {Group: "auditregistration.k8s.io", Version: "v1alpha1"}:     {group: 16400, version: 1}, {Group: "node.k8s.io", Version: "v1alpha1"}:                  {group: 16300, version: 1}, {Group: "node.k8s.io", Version: "v1beta1"}:                   {group: 16300, version: 9}, {Group: "discovery.k8s.io", Version: "v1beta1"}:              {group: 16200, version: 12}, {Group: "discovery.k8s.io", Version: "v1alpha1"}:             {group: 16200, version: 9}, {Group: "flowcontrol.apiserver.k8s.io", Version: "v1alpha1"}: {group: 16100, version: 9}, </ins> // Append a new group to the end of the list if unsure. // You can use min(existing group)-100 as the initial value for a group. // Version can be set to 9 (to have space around) for a new group.