New answers tagged

0

In my opinion, you could create bucket (aws s3 for example) and store your data there (create simple app to make upload), thus, you don’t need to care with disk full error


1

Put it inside the sh? withKubeConfig(...) { sh “”” export ... kubectl ... “”” }


3

Is there anyway to configure K8s to actually bring up a new pod, direct new traffic to it, and only then shutdown the old pod? This is the default behavior. MaxSurge is number of additional pods that runs during upgrade. What you also have to check is how the load balancer is handling traffic, does it have capability to detect that you have deployed a new ...


0

Your /etc/resolve.conf should include search <currentnamespace>.svc.cluster.local svc.cluster.local cluster.local to discover hostnames that aren't FQDN. As an example, this is the content of my pod's /etc/resolve.conf: nameserver 10.100.0.10 search staging.svc.cluster.local svc.cluster.local cluster.local eu-west-1.compute.internal With this ...


1

Helm charts should not be built for a specific environment, IMHO. You can see that many of the official helm charts have a set of default values and they are configurable from outside. You also can create a helm chart like that and declare your deployment + environment-specific values with another tool like Helm Operator or ArgoCD. In this way, you can both ...


0

Yep this worked, or at least I didn't get an error $ eksctl create cluster --alb-ingress-access -f config.yaml


2

Generally, a Helm chart would cover all your microservices - ideally, you should be able to deploy whole application in one chart. It may get a little messy if you include external 3rd party dependencies, where you would need to handle dependent charts, but I assume this is out of scope of your question. More so, if your microservices are very similar you ...


2

I believe what you're asking is: "Is there any way to create just one helm chart that can be used for all microservices in my application?". If so, then you can just use the values.yaml file to store all the values for your templates. This is not considered good practice, considering your template file needs to hold the information for each of your ...


0

The thing I was looking for was external-auth in ingress-nginx. I created a simple service with nodejs which took over all the basic-auth logic. Then I used an external link to this service in k8s annotations for restricted resources. annotation snippet: annotations: nginx.ingress.kubernetes.io/auth-url: http://service-name.default.svc.cluster.local:...


0

There are two main reasons for this issue to happen: Your dns are not exposed. Your code is redirecting to a https address (and since you are working in your local machine, most likely you don't have a secure certificate) CASE 1 - Exposing DNS On linux you can solve it like: minikube ip vim /etc/hosts Add the ip from the first step and the hostname you ...


0

To piggy back off of @eduardo-baitello answer, A third option is to increase the CPUThrottlingPercent config here


1

It looks like you are configuring two services, mysql and mysql-nodeport to use the same port. Without information to indicate otherwise im assuming this is a 1 node setup with rasbian. I personally dont have raspbian installed to test, but try something like this: --- apiVersion: v1 kind: Service metadata: name: mysql labels: app: mysql spec: type:...


2

Is the app stateless The software is stable as such but my concern is pods, by nature, are meant to be replaceable This is your primary concern. Is the app stateless (e.g. can the requests be served by any of multiple instances without problem?). If not - be very careful to run it on Kubernetes (e.g. don't use rolling-deployment) and don't run the app in ...


1

I educated myself more about helm and it looks like it has these features that I need packaging templating release management, including rollbacks so I'll study it more.


Top 50 recent answers are included