kubernetes-apiserver

How to Submit generic “runtime.Object” to Kubernetes API using client-go

折月煮酒 提交于 2021-02-18 05:13:41
问题 I'm using AWS' EKS which is Kubernetes v1.10 and I'm using client-go v7.0.0. What I'm trying to do is parse a .yml file with multiple Kubernetes resource definitions in a file and submit those resources to the Kubernetes API. I can successfully parse the files using this code scheme.Codecs.UniversalDeserializer().Decode , and I get back an array of runtime.Object . I know that all the Kubernetes resources conform to the runtime.Object interface, but I can't find a way to submit the generic

How to Submit generic “runtime.Object” to Kubernetes API using client-go

一个人想着一个人 提交于 2021-02-18 05:04:31
问题 I'm using AWS' EKS which is Kubernetes v1.10 and I'm using client-go v7.0.0. What I'm trying to do is parse a .yml file with multiple Kubernetes resource definitions in a file and submit those resources to the Kubernetes API. I can successfully parse the files using this code scheme.Codecs.UniversalDeserializer().Decode , and I get back an array of runtime.Object . I know that all the Kubernetes resources conform to the runtime.Object interface, but I can't find a way to submit the generic

How to add extra nodes to the certificate-authority-data from a self signed k8s cluster?

风流意气都作罢 提交于 2021-01-07 00:18:19
问题 I am trying to create an HA cluster with HAProxy and below 3 master nodes. On the proxy I am following the official documentation High Availability Considerations/haproxy configuration. I am passing the ssl verification to the Server Api option ssl-hello-chk . Having said that I can understand that on my ~/.kube/config file I am using the wrong certificate-authority-data that I picked up from the prime master node e.g.: apiVersion: v1 clusters: - cluster: certificate-authority-data:

How to add extra nodes to the certificate-authority-data from a self signed k8s cluster?

一笑奈何 提交于 2021-01-07 00:13:16
问题 I am trying to create an HA cluster with HAProxy and below 3 master nodes. On the proxy I am following the official documentation High Availability Considerations/haproxy configuration. I am passing the ssl verification to the Server Api option ssl-hello-chk . Having said that I can understand that on my ~/.kube/config file I am using the wrong certificate-authority-data that I picked up from the prime master node e.g.: apiVersion: v1 clusters: - cluster: certificate-authority-data:

How to add extra nodes to the certificate-authority-data from a self signed k8s cluster?

假如想象 提交于 2021-01-07 00:11:38
问题 I am trying to create an HA cluster with HAProxy and below 3 master nodes. On the proxy I am following the official documentation High Availability Considerations/haproxy configuration. I am passing the ssl verification to the Server Api option ssl-hello-chk . Having said that I can understand that on my ~/.kube/config file I am using the wrong certificate-authority-data that I picked up from the prime master node e.g.: apiVersion: v1 clusters: - cluster: certificate-authority-data:

How to add extra nodes to the certificate-authority-data from a self signed k8s cluster?

痞子三分冷 提交于 2021-01-07 00:11:00
问题 I am trying to create an HA cluster with HAProxy and below 3 master nodes. On the proxy I am following the official documentation High Availability Considerations/haproxy configuration. I am passing the ssl verification to the Server Api option ssl-hello-chk . Having said that I can understand that on my ~/.kube/config file I am using the wrong certificate-authority-data that I picked up from the prime master node e.g.: apiVersion: v1 clusters: - cluster: certificate-authority-data:

How to add extra nodes to the certificate-authority-data from a self signed k8s cluster?

一曲冷凌霜 提交于 2021-01-07 00:10:54
问题 I am trying to create an HA cluster with HAProxy and below 3 master nodes. On the proxy I am following the official documentation High Availability Considerations/haproxy configuration. I am passing the ssl verification to the Server Api option ssl-hello-chk . Having said that I can understand that on my ~/.kube/config file I am using the wrong certificate-authority-data that I picked up from the prime master node e.g.: apiVersion: v1 clusters: - cluster: certificate-authority-data: