When we get a certificate from letsencrypt, it has to be renewed periodically. The question is when do you run the renew? It is simple ( this is an command for that ) The command gives you the time period for the expiry and from when we can renew the cert. Then we can set […]
1) Install aws. Make sure aws >= 1.16; After installing make sure that aws is in the path pip3 install awscli –upgrade –user 2) Get the devops user credentials Make sure you have set up login (ie added the user in system:masters group in aws-auth configmap). This the one of the first thing we will […]
Deploy our pods(containers), using deployments 2. Expose pod using service 3. Setup ingress 4. Access Application 5. Run nginx with the config below: Point everything to 192.168.99.100 Now you can access the service from inside the network at in http://{machine-ip}:8888
The certbot ssl certificate is valid only for 90 days. We might have to keep renewing it. We will get an email update about expiring certificates. If you have set up cloudfare for your website, make sure the dns is pass through. This is required while the renewal process goes on. Renewal typically take some […]
Assuming you have a working minikube & kubectl set up. If you need help with that, take a look here. Setup: My minikube was running in a separate desktop. I wanted to access the dashboard on my macbook pro browser. First start the minikube proxy by running the command The previous command exposes the dashboard […]
When you are stuck with a migration problem in elasticsearch, say version currently run is 2.x and have to migrate to say 6.x. You have to do this: Migrate 2.x to 5.x Migrate 5.x to 6.x This is a cumbersome process, also time consuming. You need a temporary elasticsearch cluster, running in version 5. Not […]
If a file is in s3 and gunzipped, we can easily stream it and read line by line in python. Boto has problem. The read method redownloads the key if you call it after the key has been completely read once (compare the read and next methods to see the difference). So i have used […]
This error could be due to nginx not being to access the folder. We can fix this by adding www-data/nginx as the owner of the directory and sub directory. We can give persmissions to www-data/nginx user to the directory. Also we need to add executable permission to the path of the folder. chmod +x /home/ […]