Questions tagged [kind]

Kubernetes IN Docker - local clusters for testing Kubernetes

10 questions
1
vote
1 answer

How should I replace this line "provisioner: k8s.io/minikube-hostpath" for a "Kind" statefulset.yaml file?

The following is a StatefulSet.yaml file for deploying Cassandra database on a minikube cluster. I am not sure what lines should be replaced if I want to use a Kind cluster instead of a minikube one, but I think one obvious option would be…
best_of_man
  • 367
  • 1
  • 3
  • 12
1
vote
2 answers

Error in configuration: context was not found for specified context: kind-kind

This is my skaffold.yaml file: apiVersion: skaffold/v2alpha3 kind: Config deploy: kubeContext: kind-kind kubectl: manifests: - ./infra/k8s/* build: local: push: false artifacts: - image: learnertester/auth context:…
best_of_man
  • 367
  • 1
  • 3
  • 12
1
vote
1 answer

Cluster-autoscaler for Kind clusters

I have been using Kind clusters for testing and simulating the behavior of my application, and it has been great so far. I would like to test some senarios involving cluater-autoscaler (CA) without actually spinning nodes in the cloud. The default…
1
vote
2 answers

Use .kube/config Client certs in curl

If you use kubectl get pod foo -v10 you see a curl line, but this does not work. Example: guettli@p15:~$ curl -k -v -XGET -H "Accept: application/json;as=Table;v=v1;g=meta.k8s.io,application/json;as=Table;v=v1beta1;g=meta.k8s.io,application/json"…
guettli
  • 3,591
  • 17
  • 72
  • 123
0
votes
0 answers

extraPortMappings for kubeadm

I am be able map my NodePort service to localhost using a configuration file like this: kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: - role: control-plane extraPortMappings: - containerPort: 32000 hostPort: 3000 protocol:…
atg
  • 1
  • 2
0
votes
0 answers

How to access pods from local terminal?

I have a Kind cluster installed on my Ubuntu machine. I have deployed few pods on the cluster and can see they're running using kubectl get pods command. As my pods are some NodeJS services and a react web application, they're all serving on…
best_of_man
  • 367
  • 1
  • 3
  • 12
0
votes
1 answer

"CrashLoopBackOff" while deploying mysql on multi-node cluster

This is my configmap.yaml file: apiVersion: v1 kind: ConfigMap metadata: name: mysql labels: app: mysql app.kubernetes.io/name: mysql data: primary.cnf: | # Apply this config only on the primary. [mysqld] log-bin …
best_of_man
  • 367
  • 1
  • 3
  • 12
0
votes
2 answers

What is the equivalent command of "minikube start --memory 5120 --cpus=4" for "Kind"?

Here in Cassandra deployment instruction, it says: Caution: Minikube defaults to 2048MB of memory and 2 CPU. Running Minikube with the default resource configuration results in insufficient resource errors during this tutorial. To avoid these…
best_of_man
  • 367
  • 1
  • 3
  • 12
0
votes
0 answers

How to add "Kind" settings to "/.kube/config" file?

I have installed kubeadm previously and configured it using kubeadm --init and the configs are inside /.kube/config file by now. I recently installed kind and want to know how should I configure it? My goal is to using kind to work with kubernetes…
best_of_man
  • 367
  • 1
  • 3
  • 12
-1
votes
1 answer

How can I release previously allocated resources of a deleted pod?

I already had 3 Cassandra node/pods running. I deleted them and tried to re create them again using the same YAML file as following, on the same Kind cluster, but it stuck pending status: apiVersion: apps/v1 kind: StatefulSet metadata: name:…
best_of_man
  • 367
  • 1
  • 3
  • 12