Questions tagged [kubernetes]
KUBERNETES QUESTIONS MUST BE DEVELOPER RELATED. Kubernetes is an open-source platform designed to automate deployment, scaling, and operation of application containers, across multiple hosts and/or clouds. Questions about configuring clusters should be asked on https://serverfault.com
34,012
questions
0
votes
1answer
8 views
How to delete a service from k8s?
I have a service running in minikube cluster:
$ kubectl get service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP ...
0
votes
1answer
18 views
multi container pod with command sleep k8
I am trying out mock exams on udemy and have created a multi container pod . but exam result says command is not set correctly on container test2 .I am not able to identify the issue.
apiVersion: v1
...
0
votes
1answer
24 views
Kubernetes SSL from Purchased Wildcard SSL
I am trying to implement wildcard SSL for my domain with Kubernetes. I could not find any example of how to do that with purchased Wildcard Certificate (comodo). All examples are those using ...
0
votes
1answer
24 views
How to run a container only once that completes after ~10 minutes of execution via a deployment in Kubernetes
I have just started with Kubernetes.
I need to run a Deployment in Kubernetes with a container that competes for execution after ~10-15 minutes.
When I tried, "restart Policy=Never" doesn't ...
-1
votes
0answers
9 views
How to get data from kafka-cluster from kubernetes using python script?
my goal is to consume messages from kafka-cluster running on kubernetes .
currently I am consuming messages using this command -
kubectl exec -it -n default kafka-utils -- ./bin/kafka-console-consumer....
1
vote
0answers
23 views
kubernetes external-dns not updating dns: “HTTP request failed: Get [url] : x509: certificate is valid for [router domain], not api.cloudflare.com”
I'm trying to set up external-dns as outlined in the docs for a bare-metal microk8s server, using Cloudflare as my DNS service. Deploying their pod with the API token for cloudflare seems to work ...
0
votes
0answers
18 views
Sharing non-persistent volume between containers in a pod
I am trying to put two nodejs applications into the same pod, because normally they should sit in the same machine, and are unfortunately heavily coupled together in such a way that each of them is ...
-1
votes
0answers
12 views
K8s error: [kube-peers] Could not get peers: Get “https://10.96.0.1:443/api/v1/nodes”: dial tcp 10.96.0.1:443: connect: no route to host
I am new to K8s.
I setup a cluster with 1 master and 1 worker in Azure. I am using Azure VMs.
I could be able to setup etcd, api server, scheduler etc on master and kubelet, kube=proxy on worker and ...
-1
votes
2answers
40 views
Can't connect Docker CLI to local Docker Daemon
I downloaded minikube after that ......
I did minikube start....so, node started
I played around with some containers(deployment object)
Now when I am doing docker ps => it's showing all the k8's ...
1
vote
0answers
11 views
Does a Pod use the k8s API Server to fetch spec declarations?
I'm going through this post, where we bind a Role to a Service Account and then query the API Server using said Service Account. The role only has list permission to the pods resource:
apiVersion: ...
1
vote
0answers
14 views
Why has Kubernetes on Docker For desktop (Mac) Persistent Volume hostpath become laggy?
I have been successfully using Kubernetes on Docker VM for local development by sharing IDE directories with pods (in deployments) to facilitate development.
apiVersion: v1
kind: PersistentVolume
...
0
votes
1answer
27 views
Multiple Persistent Volumes with the same mount path Kubernetes
I have created 3 CronJobs in Kubernetes. The format is exactly the same for every one of them except the names. These are the following specs:
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: ...
0
votes
2answers
23 views
Build Dockerfile without docker on Kubernetes (AKS 1.19.0) running with containerd
I have Azure devops pipeline, building dockerfile on AKS, as AKS is deprecating docker with the latest release, kindly suggest best practice to have a dockerfile build without docker on AKS cluster.
...
0
votes
0answers
22 views
Kubernetes API server filtering by field - in request time
I'm trying to get all the secrets in the cluster of type helm.sh/release.v1:
$ curl -X GET $APISERVER/api/v1/secrets --header "Authorization: Bearer $TOKEN" --insecure
{
"kind": &...
-1
votes
0answers
23 views
running mysql replicated stateful application in kubernetes
I am following tutorial on https://kubernetes.io/docs/tasks/run-application/run-replicated-stateful-application/ to create a HA mysql cluster. Since i don't have dynamic provision for the persistent ...