kubernetes-go-client Questions
3
Solved
Runnning kubectl exec -it <PODNAME> -- /bin/bash is printing a lot of trash of the shell:
) Data frame handling
I0331 17:46:15.486652 3807 logs.go:41] (0xc4201158c0) Data frame received for...
Stereotropism asked 31/3, 2017 at 15:50
2
Is there a way to restart a kubernetes deployment using go-client .I have no idea how to achieve this ,help me!
Puffin asked 21/4, 2020 at 3:9
4
I would like to implement a functionality - that validates Kubernetes deployment files(deployments yaml or service yaml or rc yaml) using k8s JSON schema /Yaml Schema.
Currently I need the s...
Skyline asked 9/8, 2017 at 11:44
4
Solved
Using the kubernetes go-client (k8s.io/client-go/kubernetes), I know how to get pod.Status and I find the pod.Status.Phase useful (docs). For example, I can output the Pod Status Phase of all Pods ...
Piccalilli asked 31/7, 2019 at 19:37
2
I have a Kubernetes cluster and have a running container (X). From this container i want to create a new namespace, deploy a pod in this name space and spawn container(Y). I know kubernetes provide...
Irk asked 23/6, 2017 at 1:28
3
Solved
How can I deserialize a Kubernetes YAML file into an Go struct? I took a look into the kubectl code, but somehow I get an error for every YAML file:
no kind "Deployment" is registered for version ...
Oba asked 1/6, 2017 at 11:41
1
Solved
I have the following code that is working fine. It adds the label example: yes in the kubernetes object:
package main
import (
"fmt"
"encoding/json"
"k8s.io/apimachiner...
Odell asked 25/1, 2021 at 15:5
2
I have a demo golang program to list Pods without a particular label. I want to modify it so it also can add a label to each pod.
(I'm using the AWS hosted Kubernetes service, EKS so there's some ...
Windy asked 1/8, 2019 at 13:44
1
Solved
I'm trying to connect to my local Kubernetes cluster hosted on minikube, here's the code for the same, now when I do go run minikube.go, it gives me an error saying:
../../../pkg/mod/k8s.io/[email&...
Hartwig asked 30/8, 2020 at 8:19
3
i would like to parse kubernetes manifest file (json/yaml) and be able to convert them to k8s structures (to later on manipulate them)
I know there is the NewYAMLOrJSONDecoder().Decode() function ...
Mertens asked 4/11, 2017 at 23:48
1
I want to use Kubernetes Go client to execute various actions in a cluster.
I am loading my local kubeconfig which contains multiple clusters and contexts. The default context is prod and one of th...
Micturition asked 12/1, 2020 at 21:24
1
I need my Go app to monitor some resources in a Kubernetes cluster and react to their changes. Based on numerous articles and examples, I seem to have found a few ways to do it; however, I'm unable...
Nacred asked 31/12, 2019 at 12:25
2
Solved
I am creating a pod in k8 client go and making a watch to get notified for when the pod has completed so that i can read the logs of the pod. The watch interface doesnt seem to provide any events ...
Economy asked 29/9, 2018 at 10:12
2
Solved
Is client.Secrets(namespace).Update(secret) an atomic call? If this call fails somehow, does the original secret stored in Kubernetes API server get corrupted?
https://github.com/kubernetes/client...
Pizor asked 23/10, 2019 at 18:41
2
Solved
I am trying to delete a pod in my kubernetes cluster, then check its status to see how long does it take for the pod to get down, and up again. I could not find any helpful example for the second p...
Lett asked 19/12, 2018 at 18:57
2
Spec: v1.PodSpec{
Containers: []v1.Container{
v1.Container{
Name: podName,
Image: deploymentName,
ImagePullPolicy: "IfNotPresent",
Ports: []v1.ContainerPort{},
Env: []v1.EnvVar{
v...
Bertabertasi asked 25/10, 2018 at 6:57
1
I am trying to automate kubernetes worker nodes using the official kubernetes python-client. I am currently looking for a way to safely move al the running applications to other nodes . We can do s...
Hamill asked 5/10, 2017 at 18:52
2
Solved
One way I could think of is to set an environment which value is the namespace of the Pod when defining the Pod.
Getting the namespace dynamically without requiring changes for Pod will be
better ...
Vulcan asked 5/9, 2017 at 2:17
1
I am setting up a minimal Kubernetes cluster on localhost on a Linux machine (starting with hack/local-up-cluster from the checked out repo). In my deployment file I defined an ingress, which shoul...
Hexose asked 20/7, 2017 at 12:58
1
© 2022 - 2024 — McMap. All rights reserved.