New answers tagged

0

I have less reputation to add this in comment, are you sure your domain.com is resolving to said IP, ,and any .htacess or any rule preventing it, sometimes it take time to resolve and it route to old domain.com


1

The IP addresses that are in your kubernetes cluster are internal to the cluster. There is nothing that would get an IP Address outside of your k8s cluster, like a dhcp from your router/dhcp server. K8s creates virtual adapters depending on the CNI runtime that you have implemented and it also creates domains for the objects inside. Anything inside k8s goes ...


1

To answer your two questions: I'm Interested before terminating a pod does kuberentes makes sure that that no traffic is load balanced on to be terminated pod. If you have more than 1 pod running then yes, it will not send traffic to the failed/terminating pod. Also what are the best practices to fine tune Kubernetes pod eviction. The official Kubernetes ...


0

Helm supports sub charts. You could make your ingress yaml file into its own helm chart. You could then make a base chart then put both of your charts in it as subcharts. (Or have one of your charts as the "Main chart" and another as a subchart.)


0

Still the most proper way is to update tags of your docker image and update yourapp.yaml script , there's no other way and then just kubectl -f yourapp.yaml. For this purpose GitOps is used. For me who has small cluster using something as ArgoCD is too much. I've went with Gitlab free service called AutoDevops which deploys read and tested docker container ...


1

The 'best approach' in a theory (coming from the perspective of k8s) would be GitOps: Cloud-native Continuous Deployment. Your question lack some important information, how are you doing your deployments right now ? Do you have some limitations in terms of security and auditability ? Sharing my personal 2 cents, using GitOps with ArgoCD outsource and ...


0

We are using https://github.com/stakater/Reloader The work of the reloader is that when someone update the configmap/secrets then it will keep watch the deployment and it will automatically restart the deployments. This is the best way we have find out till now


1

Have you try to do it by Port Forwarding your configured service with TLS to your local machine ? I've never tried but it seams to be possible with it. Maybe you can find something here : https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/


0

You should think about the needs of your applications. Every storageClass have differents purposes, like the type of storage, the max size, ACLs, CSI, replications... If you know that your storage can be "cold", you don't need to take a premium storage. Every providers has it's own level of classes, check the doc of AWS to find the best option for ...


0

In a simple words and correct me If I am wrong, kubectl create namespace ingress-nginx -> this creates a namespace called ingress-nginx Correct ! helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx -> This add a chart repository called ingress-nginx from the URL mentioned (Am I free to name it to something else!?) Correct too ! ...


0

Kibana is used for logging and Grafana for Monitoring. In order to create a dashboard that shows all running containers one could use Grafana.


0

Did you try to set the .spec.successfulJobsHistoryLimit to 1 instead of the default value of 3? https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#jobs-history-limits


0

I would suggest try out Terraform with the helm provider. I work with this every day and all of our helm charts have custom values files for deployment. I guess this can be considered a "best practice" depending on the company. So how the flow goes: We have a custom app all in K8S. We set up a helm_release with terraform. We specify the custom ...


1

You explained what each does pretty well! I strongly suggest reading the documentation, especially for the commands, don't rely on tutorials only.helm commands helm repo add => This is what it stands for, it adds a new helm chart repository. helm repo update => Update gets the latest information about charts from the respective chart repositories. When ...


0

The "silver bullet" really is multiple environments. DEV/TEST/UAT/STAGE... and all should be periodically synced with prod. Have you considered spinning up ad-hoc/on-demand development environments via CI/CD? Another more immediate solution is this https://code.visualstudio.com/docs/remote/ssh Since you're already using docker, you could build ec2 ...


1

The pod eviction can happen because of resources outages like CPU, ram, and storage. You can prevent your cluster from the eviction of pod by declaring the resource quotas. You can define resource quota over namespace but before that, you have to calculate workload usage and create a resource limit on provided request quota. You have three types of quotas ...


1

TL;DR : you need a shared integration environment There are a lot of moving parts here, so giving explicit advice on what to do might be quite impossible. When you're faced with a complex situation, the trick is to know how to think, rather than what to do. This question will invite the criticism of generating opinionated answers, because there are many ...


0

Seems like these commands are sufficient $ kubectl rollout history deployment myapp $ kubectl rollout history deployment myapp --revision=76 and to check the difference (use diff or colordiff) colordiff \ <(kubectl rollout history deployment myapp --revision=76) \ <(kubectl rollout history deployment myapp --revision=81)


1

setup a readiness Probe in the pod spec, something like this readinessProbe: httpGet: path: / port: 443 readiness probes specifically inform service routing decisions


Top 50 recent answers are included