Kubernetes

Kubernetes is a cloud platform for automating the deployment, scaling, and management of containerized applications.

Kubernetes subscription active
You will receive email notifications for new publications on Kubernetes.
262 Results
  • Question

    How to reuse DO LoadBalancer previously created through Kubernetes?

    Hi, when creating a Kubernetes cluster and using a load balancer to host any public service, its easy to imagine that there would be anything going terribly wrong with the cluster. In that case I would like to create ...
    Accepted Answer: Hi Dennis, Thanks for your question. I'm Tyler, the product manager for our Load Balancer product. At this point in time, it's not possible to re-use an existing LB. It has to be generated as a new LB in order to get ...
    8 By dennisstr Kubernetes Load Balancing
  • Question

    Custom loadbalancer?

    Hi, I have created a Kubernetes cluster with the help of DOs' Kubernetes service. Every time I create a load balancer service inside my cluster, a load balancer from DO gets created which is a paid service. We current...
    Accepted Answer: I use a service mesh, Linkerd, which is on the DO Marketplace and easily installable in existing clusters. Then I use an ingress controller to handle the external traffic coming in. It can sustain drains and upgrades ...
    4 By tomescumihail93 Kubernetes Load Balancing
  • Question

    Can Cilium Network Policy be leveraged to blacklist troublesome hosts

    I have been developing a web app living in DO's managed Kubernetes, and am researching the best way to blacklist Internet ingressed hosts that are an issue. For example, I flag a host as attempting bad authentication ...
    Accepted Answer: hi there, You could certainly use networkPolicy objects to enforce rules like you described. Another option would be to use a single LB for an ingress controller and then police the traffic at that point. For example ...
    1 By pinion Kubernetes Networking
  • Question

    How do I set DNS records for Kubernetes with a load balancer?

    I am using Helm to create a Kubernetes deployment. In front of this, there is a load balancer and an ingress server - see below for an abridged version of helm status auth ``` ==> v1/Service NAME TYPE ...
    Accepted Answer: I've sort of moved away from this now. Rather than managing my own ingress, I've wired it up with GitLab and let them manage my ingress. If I'd wanted to do this as my own ingress, I would need nginx-ingress controlle...
    2 By simon5396a2eb73fd67c2ed154 Kubernetes Load Balancing DNS DigitalOcean
  • Question

    Pod unable to curl loadbalancer

    Hey All, My pods are unable to curl any domains attached to or the IP of my loadbalancer. It just times out. It does work from an external address however. This is currently preventing cert-manager from creating a cer...
    Accepted Answer: Hi there! Thank you for cntacting DigitalOcean! There is a known issue in the kubernetes project(https://github.com/kubernetes/kubernetes/issues/66607)for connections from within the cluster accessing public urls to t...
    1 By cooljacob204 Kubernetes
  • Question

    Use kubernetes without a load balancer?

    I have a docker image of my node.js application and I was wondering if I could use it with kubernetes and expose it publically without having to use a load balancer (I will have one container running only)?
    Accepted Answer: Hi there! Yes you could do this by creating a simple nodeport service. Then you should be able to access your application at: <ip of node>:<nodeport assigned> Downsides of this are: The default nodeport range is 300...
    1 By waqas14 Kubernetes
  • Question

    Kubernetes deployment with external load balancer: zero downtime rollouts

    Environment My Kubernetes cluster only has 1 node for now - managed by DigitalOcean. The web application that I deployed runs in 3 pods - all on ONE node. I used the external DigitalOcean's load balancer to expose the...
    Accepted Answer: This is fixed now, I asked too soon, but I hope this will help someone else: I had to add livenessProbe and readinessProbe to my deployment - to have kubelet check to make sure my pods are ready to start accepting tra...
    2 By alexkovshovik Kubernetes Deployment Load Balancing High Availability
  • Question

    How to solve clusterissuer challenge timeouts?

    Setup: DO K8S Cluster w/ 2 nodes and 1 Ingress-NGINX LoadBalancer I was wondering why certificate requests fail and found in the logs of the Challenge, that the self check GET request runs into timeout. After looking ...
    Accepted Answer: Posted the same issue on SO, and already got an answer there: https://stackoverflow.com/questions/59286126/kubernetes-cluterissuer-challenge-timeouts For me, this is an acceptable workaround for now. Hope this can hel...
    2 By thc Kubernetes Nginx Load Balancing Networking DigitalOcean Managed Kubernetes
  • Question

    How long does it typically take a cluster to come up and be live?

    I have successfully launched my app using DO Kubernetes, but have noticed that from typing kubectl apply for the first time to the cluster being able to serve requests takes around 5 minutes. Is this typical? It see...
    Accepted Answer: Hi there! Yes it can take anywhere from 3-10min for the cluster to come up. This is heavily dependent on the cluster size and how many nodes need to bootstrap as well as other factors such as the standard performance ...
    4 By scottmiller Kubernetes Ruby on Rails
  • Question

    How to connect Gitlab project to Kubernetes cluster?

    I want to connect my Gitlab project with a Kubernetes cluster. Basically I want to try to create my first CI/CD pipeline.
    Accepted Answer: Hello, With GitLab this is quite straight forward to do. Prerequisites: Deploy a K8s cluster on DigitalOcean. If you do not have that already, here's how to do it: https://www.digitalocean.com/docs/kubernetes/how-to/c...
    3 By devdojo Kubernetes Git Development
  • Question

    All pods scheduled on a single node. How do I balance pods on managed Kubernetes?

    I have a managed Kubernetes cluster with 2 nodes and around 50 deployments/pods. However, all 50 pods are scheduled on a single node while the other node is completely empty. How do I get the scheduler to schedule new...
    Accepted Answer: Try using podAntiAffinity or podAffinity in your deployment
    6 By digitaloceanuser2 Kubernetes
  • Question

    Private docker registry

    Hi there, I just got access to the new kubernetes cluster feature. I was wondering about how to access a private docker registry? Thanks, M
    Accepted Answer: I've done this with Gitlab as my Docker registry. Create a secret of type docker-registry: kubectl create secret docker-registry gitlab-registry --docker-email="EMAIL" --docker-username="USERNAME" --docker-server="ht...
    4 By teo2k Kubernetes
  • Question

    kubectl asking for username and password

    I have just set up a Kubernetes cluster on DigitalOcean. I have followed the suggested tutorial but when I try and run the commands I keep getting prompted for a username and password which I have not been provided wi...
    Accepted Answer: After pulling my hair out for a few hours and seriously questioning why I moved to DO, I've got to the bottom of the issue... Manually downloading the config file and using doctl will retrieve different files. The man...
    4 By anthonybudd DigitalOcean Kubernetes
  • Question

    Are there any limitations on kubernete orchestration?

    Hi! Kubernetes allow us to orchestrate nodes in clusters with hundreds of advanced features, right? Are there any limitations/restrictions on DigitalOcean kubernetes clusters if I use my own configuration / orchestrat...
    Accepted Answer: Hi there, DOKS is a managed offering. Because of this the configuration of the master as well as the configuration of the nodes are currently not modifiable by our customers. So if your workload requires a certain fea...
    2 By mdconcursos Kubernetes
  • Question

    Namespaces is forbidden (Helm install on public wordpress chart)

    Hi there! I've started out with the hosted Kubernetes and have ran into a bump. When trying to do a helm install: helm install --namespace kube-public --name wordpress stable/wordpress After first setting up the kub...
    Accepted Answer: Figured this out, for those who run into it. This is because by default RBAC is enabled, which prevents tiller from working. To fix this you need to follow these steps: https://docs.bitnami.com/kubernetes/how-to/confi...
    1 By nicholasrobertm Kubernetes
  • Question

    Using floating IP for a one node kubernetes cluster and auto updates

    Hi, I really like the Digitalocean kubernetes implementation, so I am thinking to use it also for small projects, where one node is enough. For one node cluster, a floating IP would be enough. So I am asking you, if ...
    Accepted Answer: Hi there! In the current offering this is still a manual process. Floating IP's are not supported on DOKS clusters due to the dynamic nature of kubernetes nodes. You could look into ways to creative ways to automate t...
    1 By aronwolf90 Kubernetes DigitalOcean Managed Kubernetes
  • Question

    Why do my inbound rules keep resetting

    I have created a Kubernetes Cluster. All works fine, however I needed to add an inbound rule to the firewall that it created in order to allow HTTPS. But after a while my rules keep resetting and my added HTTPS rule ...
    Accepted Answer: Hi there! The cloud resources(volumes/Load Balancers/Firewall) created by DOKS are not intended to be manually modified/renamed. If there are manual modifications made to a cloud resource's settings, the reconciler wi...
    2 By raduachim DigitalOcean Cloud Firewalls Kubernetes
  • Question

    Kubernetes: How do I access the CA to sign a new user certificate?

    I'm going through a RBAC tutorial (https://docs.bitnami.com/kubernetes/how-to/configure-rbac-in-your-kubernetes-cluster/) for Kubernetes and have hit a roadblock. It looks like I need to sign user certs using Kubernet...
    Accepted Answer: Hi Yes you can use the build in CA in your cluster to create client certificates. Background information on how to use the CA: https://kubernetes.io/docs/concepts/cluster-administration/certificates/ Basically here i...
    1 By lindenk DigitalOcean Kubernetes
  • Question

    How to get to work Dashboard and Helm in DO K8s cluster?

    Hello. I've created new k8s cluster with DigitalOcean. And there are few things I cannot figure out how to solve: kubectl shows that Dashboard pod is deployed, its service is ready to serve. With kubeclt proxy I mana...
    Accepted Answer: Hey there, It looks like you (and the others reporting the issue in the comments) may have ran into an issue with the Kubernetes master node not being properly assigned to your private network. We're working to resol...
    6 By OlegOfren Kubernetes Debian
  • Question

    Unable to deploy to Digital Ocean Kubernetes using GitLab CI

    I’m moving my review apps from Google Kubernetes to Digital Ocean Kubernetes. I have succesfully linked the Kubernetes clusted to GitLab. I have installed Helm Tiller, Ingress, Cert-Manager, and Prometheus using the G...
    Accepted Answer: Hi there, This looks like an RBAC permissions issue. The error you're seeing is saying the service-account "default-service-account" in namespace "default" doesnt have access to pods in the 'gitlab-managed-apps' names...
    1 By remcohaszing Kubernetes DigitalOcean