Generating Go structs from Kuberetes YAML CustomResourceDefinition
Stack Overflow Forums » Kubernetes
by Stef
25m ago
I'm trying to generate Go files (mainly structs) from K8S YAML CRD's. The end result would look much like what oapi-codegen does for OpenAPI definitions. I have a YAML CRD file, for example: apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: name: subscriptions.operators.coreos.com spec: ... status: ... I've managed to parse it into an Unstructured type, but don't know where to go from there, my code: ... // 2. List down all the existing crd in the cluster crdList, err := crdClientSet.ApiextensionsV1().CustomResourceDefinitions().List(context.Backgro ..read more
Visit website
How do I recover file of k8s job
Stack Overflow Forums » Kubernetes
by Stepan
25m ago
Let's say some time ago we created a kubernetes job with kubectl apply -f FILE.yaml but in a few month we lost the FILE.yaml how can we get the FILE.yaml from kubectl? I have tried commands such as kubectl get pod JOBNAME -o yaml but this is not the result that I expect ..read more
Visit website
K8s port forwarding issue
Stack Overflow Forums » Kubernetes
by USER
25m ago
I use redisinsight and want to port forward to this. I installed redisinsight on helm chart I am using k8s version 1.26 I tried both kubectl port-forward deployment/redisinsight 8001 kubectl port-forward redisinsight-77d974d17f-5jv81 8001 Forwarding from 127.0.0.1:8001 -> 8001 Forwarding from [::1]:8001 -> 8001 Handling connection for 8001 After I connect to localhost:8001 E0222 17:02:11.283721 19370 portforward.go:409] an error occurred forwarding 8001 -> 8001: error forwarding port 8001 to pod addca499a5bc1ede8ba149924c23a4000d0a08fc7720ca18c211b7915b2676a4, uid : failed to e ..read more
Visit website
How to share resource two way from the main container to a sidecar container and vice-versa
Stack Overflow Forums » Kubernetes
by Rahul Kumar
2h ago
I have a main container and a sidecar container inside a pod. I Know main app container and sidecar container share certain resources or data, but they are typically distinct entities with their own memory allocations. Also, sidecar might interact and share resources such as files But I don't want to share my resources using files. Is there any other way ? I Know main app container and sidecar container share certain resources or data, but they are typically distinct entities with their own memory allocations. Also, sidecar might interact and share resources such as files But I don't want to s ..read more
Visit website
Setting seccompProfile to RuntimeDefault is crashing the deployment
Stack Overflow Forums » Kubernetes
by Amal
2h ago
I'm getting an error while trying to add the seccomp profile in my deployment.yaml file seccompProfile: type: RuntimeDefault This is the error message that i'm getting pods "test-service-provider-74998db678-" is forbidden: unable to validate against any security context constraint: [pod.metadata.annotations[seccomp.security.alpha.kubernetes.io/pod]: Forbidden: seccomp may not be set, pod.metadata.annotations[container.seccomp.security.alpha.kubernetes.io/istio-validation]: Forbidden: seccomp may not be set, pod.metadata.annotations[container.seccomp.security.alpha.kubernetes ..read more
Visit website
Org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processorMetrics' defined in class path resource
Stack Overflow Forums » Kubernetes
by manjosh
4h ago
When I run my application in kubernetes cluster, I get the below exception and it does not come up. 2024-02-21 10:52:17,206 ERROR o.s.b.SpringApplication [main] Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processorMetrics' defined in class path resource [org/springframework/boot/actuate/autoconfigure/metrics/SystemMetricsAutoConfiguration.class]: Failed to instantiate [io.micrometer.core.instrument.binder.system.ProcessorMetrics]: Factory method 'processorMetrics' threw exception with message: null at org.springframework.beans ..read more
Visit website
Kubenetes jenkins deployment get failed, got "Liveness probe failed: HTTP probe failed with statuscode: 503" error
Stack Overflow Forums » Kubernetes
by Julio Cesar Estrada
10h ago
I have a Kubernetes cluster in Digital Ocean and I am using this Jenkins deploy. apiVersion: apps/v1 kind: Deployment metadata: name: jenkins namespace: jenkins spec: replicas: 1 selector: matchLabels: app: jenkins-server template: metadata: labels: app: jenkins-server spec: securityContext: fsGroup: 1000 runAsUser: 1000 serviceAccountName: jenkins-admin containers: - name: jenkins image: jenkins/jenkins:lts resources: limits: memory: "2Gi" cpu: "700m ..read more
Visit website
AWS EKS nodeGroup deleting status
Stack Overflow Forums » Kubernetes
by Bilal Majeed
15h ago
Hello I am using terraform to deploy the AWS infrastructure. This morning I am quite not sure what happens but I endup stuck at "EKS nodeGroup is not deleting status". The health shows that IAM role is not found, I created that role again and tries to update nodeGroup from CLI and it says "An error occurred (ResourceInUseException) when calling the UpdateNodegroupVersion operation: Nodegroup cannot be updated as it is currently not in Active State" I am unable to delete cluster and nodeGroup from the CLI and from the terraform as well. In my terraform script nodeGroup have instance type is (SP ..read more
Visit website
What happens if CPU consumption is higher than CPU limits in k8s?
Stack Overflow Forums » Kubernetes
by Nikolay Debolsky
15h ago
This is theoretical question. For example. I have pod with simple python app and limits for this app: resources: requests: cpu: 500m memory: 1Gi limits: cpu: 1000m memory: 2Gi What if happens if cpu usage will be more then cpu limits and is this possible ..read more
Visit website
Pod status to elasticsearch through fluent-bit
Stack Overflow Forums » Kubernetes
by Sana Shahbaz
15h ago
I want to Know that i have added kubernetes metadata while using fluent-bit to send logs to elasticsearch but it does not add the pod status/phase in it. How to add pod status to it too? These are the filters i have added in my yaml: [FILTER] Name record_modifier Match * Regex ^s\.(.+)$ Replace ${1} [FILTER] Name kubernetes Match fluent* Kube_URL http://0.0.0.0:9200 Merge_Log On Merge_Log_Key log_processed K8S-Logging.Parser On ..read more
Visit website

Follow Stack Overflow Forums » Kubernetes on FeedSpot

Continue with Google
Continue with Apple
OR