Hunter  Krajcik

Hunter Krajcik

1674804900

Increase the disk size of StatefulSet PVC

Hi folks in this blog we will see How To Increase the disk size of Stateful PVC. When we edit the manifest file of Statefulset to increase the disk size of PVC and try to apply the changes it throughs an error. That means we can not edit the disk size of Statefulset by editing the manifest file to increase the disk size. So in this blog, we will see how we can increase the disk size of Statefulset without downtime.

Error when you try to apply the changes to the manifest.

spec: Forbidden: updates to statefulset spec for fields other than ‘replicas’, ‘template’, and ‘updateStrategy’ are forbidden

Usecase

Suppose you are using elastic search as a Statefulset with PVC to store the logs of your application and at some time you see that your index is showing yellow or red and this is because your elastic search storage is full. In that case, you have to increase the size of your Statefulset PVC but you don’t want any downtime.

Make sure storage-class ALLOWVOLUMEEXPANSION Is set to true

Increase the size of the PVC

First list the PVC that is bound with your Statefulset object. After that, you need to increase the size of each PVC using the kubectl command.

To list PVC use the following command:

kubectl get pvc -n <namespace>

To edit PVC use the following command

kubectl edit pvc <pvc-name> -n <namespace>

Under the spec section of your, PVC object increase the desired storage size and do the same with all bound PVCs.

Delete the Statefulset and Recreate the Statefulset

Deleting the Statefulset will not cause downtime as PVC will exist after even after deleting the Statefulset object. You will be able to use your stored volume. If you are using helm to deploy the Statefulset then follow the below step to Delete and recreate the Statefulset object.

To delete StatefulSet use this command

kubectl delete statefulset --cascade=orphan <statefulset_name> -n <namespace> 

–cascade=orphan flag will delete Statefulset only but your pod will remain running.

Now edit the helm chart with the updated PVC and use the below command to reinstall the chart to Recreate Statefulset.

helm upgrade <release_name> <chart_name> -n <namespace>

Now you will be able to see the new Statefulset is created with the updated PVC.

Conclusion

I hope now you are able to increase the disk size of the Statefulset PVC If you have any doubts or questions feel free to reach out to me or comment below. I hope you liked it Thank you.

References:

https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/

Original article source at: https://blog.knoldus.com/

#studio #devops #k8s #kubernetes 

What is GEEK

Buddha Community

Increase the disk size of StatefulSet PVC
Hunter  Krajcik

Hunter Krajcik

1674804900

Increase the disk size of StatefulSet PVC

Hi folks in this blog we will see How To Increase the disk size of Stateful PVC. When we edit the manifest file of Statefulset to increase the disk size of PVC and try to apply the changes it throughs an error. That means we can not edit the disk size of Statefulset by editing the manifest file to increase the disk size. So in this blog, we will see how we can increase the disk size of Statefulset without downtime.

Error when you try to apply the changes to the manifest.

spec: Forbidden: updates to statefulset spec for fields other than ‘replicas’, ‘template’, and ‘updateStrategy’ are forbidden

Usecase

Suppose you are using elastic search as a Statefulset with PVC to store the logs of your application and at some time you see that your index is showing yellow or red and this is because your elastic search storage is full. In that case, you have to increase the size of your Statefulset PVC but you don’t want any downtime.

Make sure storage-class ALLOWVOLUMEEXPANSION Is set to true

Increase the size of the PVC

First list the PVC that is bound with your Statefulset object. After that, you need to increase the size of each PVC using the kubectl command.

To list PVC use the following command:

kubectl get pvc -n <namespace>

To edit PVC use the following command

kubectl edit pvc <pvc-name> -n <namespace>

Under the spec section of your, PVC object increase the desired storage size and do the same with all bound PVCs.

Delete the Statefulset and Recreate the Statefulset

Deleting the Statefulset will not cause downtime as PVC will exist after even after deleting the Statefulset object. You will be able to use your stored volume. If you are using helm to deploy the Statefulset then follow the below step to Delete and recreate the Statefulset object.

To delete StatefulSet use this command

kubectl delete statefulset --cascade=orphan <statefulset_name> -n <namespace> 

–cascade=orphan flag will delete Statefulset only but your pod will remain running.

Now edit the helm chart with the updated PVC and use the below command to reinstall the chart to Recreate Statefulset.

helm upgrade <release_name> <chart_name> -n <namespace>

Now you will be able to see the new Statefulset is created with the updated PVC.

Conclusion

I hope now you are able to increase the disk size of the Statefulset PVC If you have any doubts or questions feel free to reach out to me or comment below. I hope you liked it Thank you.

References:

https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/

Original article source at: https://blog.knoldus.com/

#studio #devops #k8s #kubernetes 

Mike doctor

Mike doctor

1624392000

6 Daily Habits that INCREASE Your Income (Guaranteed)

In this video, I’m revealing 6 daily habits that are GUARANTEED to boost your income
I used to think that making more money was only about what job you had. FALSE. What job you have is influenced by so many things you do on a day to day basis. When we control these factors, we make it so we find better jobs, see new opportunities to make money, and think like the rich.

Money is not the answer to happiness, but it makes life easier. You might work fewer years if you make more. You might get to spend more time with family or doing things you are passionate about. Whatever it is, I think the general consensus is that making more money is better.

I’ll show you the 6 things, tips, and tricks I do to boost my income. And you’ll see why you can do them too.

  1. Having a WIG (Wildly important goal) - this will heavily impact your vision and accountability in reaching your goals.

  2. Building high income skills - this probably correlates most directly with the amount of money you make, and is something you should prioritize doing at a young age.

  3. Following the social media accounts of people you want to be like - sounds cheese but this has influenced my life so much. I learn from successful people and it’s like them being a mentor from afar.

  4. Wake up early - cannot stress how important this was. The productivity, renewed motivation, and ability to do uncomfortable things has paid off.

  5. Time blocking - I’ll show you how to use your calendar and create blocks of time. This should make you TWICE as productive.

  6. Self improvement - people that make more money spend more time on self improvement. This is crucial to anyone that wants to raise the limit or “cap” of what they are capable of.

📺 The video in this post was made by Charlie Chang
The origin of the article: https://www.youtube.com/watch?v=yIFGJ0YqxYw
🔺 DISCLAIMER: The article is for information sharing. The content of this video is solely the opinions of the speaker who is not a licensed financial advisor or registered investment advisor. Not investment advice or legal advice.
Cryptocurrency trading is VERY risky. Make sure you understand these risks and that you are responsible for what you do with your money
🔥 If you’re a beginner. I believe the article below will be useful to you ☞ What You Should Know Before Investing in Cryptocurrency - For Beginner
⭐ ⭐ ⭐The project is of interest to the community. Join to Get free ‘GEEK coin’ (GEEKCASH coin)!
☞ **-----CLICK HERE-----**⭐ ⭐ ⭐
Thanks for visiting and watching! Please don’t forget to leave a like, comment and share!

#bitcoin #blockchain #increase #habits #6 daily habits that increase your income (guaranteed) #increase your income

King Size Male Enhancement Pills Reviws

King Size Male Enhancement For instance contains Hawthorn Berry which improves blood stream to King Size Pills the penis yet all through the body fortifying your general circulatory framework wellbeing. With most enhancers you should take possibly a couple of pills for each day; one in the first part of the day and one around evening time.

Click to Order King Size Male Enhancement From The Official Website

King Size Male Enhancement It is significant that you are appropriately hydrated. King Size Pills In the event that you drink water when you take the pill and you are hydrated then you can guarantee it will break down and be consumed by the body rapidly. Most men take them for a while. Why Well roughly 3-4 months is around the time it takes for to accomplish greatest outcomes.

https://kingsizeshop.wixsite.com/king-size-male-enhan
https://sites.google.com/view/king-size-male-enhancement/home
https://publons.com/researcher/4056872/king-size-pills/
https://angel.co/u/king-size-male-enhancement
https://angel.co/company/king-size-male-enhancement-1
https://teespring.com/stores/king-size-pills
https://www.spreaker.com/user/kingsizemaleenhancement
https://www.spreaker.com/show/king-size-male-enhancement-pills-reviws
https://lunaireketobhb.blogspot.com/2020/12/king-size-male-enhancement-king-size.html
https://mrxmaleenhancement-point.blogspot.com/2020/12/king-size-male-enhancement-king-size.html

#king size pills #king size male enhancement #king size male enhancement pills #male enhancement

King Size Male Enhancement Pills Reviws

King Size Male Enhancement For instance contains Hawthorn Berry which improves blood stream to King Size Pills the penis yet all through the body fortifying your general circulatory framework wellbeing. With most enhancers you should take possibly a couple of pills for each day; one in the first part of the day and one around evening time.

King Size Male Enhancement It is significant that you are appropriately hydrated. King Size Pills In the event that you drink water when you take the pill and you are hydrated then you can guarantee it will break down and be consumed by the body rapidly. Most men take them for a while. Why Well roughly 3-4 months is around the time it takes for to accomplish greatest outcomes.

https://kingsizeshop.wixsite.com/king-size-male-enhan
https://sites.google.com/view/king-size-male-enhancement/home
https://publons.com/researcher/4056872/king-size-pills/
https://angel.co/u/king-size-male-enhancement
https://angel.co/company/king-size-male-enhancement-1
https://teespring.com/stores/king-size-pills
https://www.spreaker.com/user/kingsizemaleenhancement
https://www.spreaker.com/show/king-size-male-enhancement-pills-reviws
https://lunaireketobhb.blogspot.com/2020/12/king-size-male-enhancement-king-size.html
https://mrxmaleenhancement-point.blogspot.com/2020/12/king-size-male-enhancement-king-size.html

#king size male enhancement #king size pills #king size male enhancement pills reviws #male enhancement

I am Developer

1620289849

How to Compress Image Size In Codeigniter 4

Codeigniter compress image size. In this tutorial, you will learn how to upload and compress image size in codeigniter app.

This tutorial will guide you step by step on how to compress image size and upload in codeigniter app. And you can easily compress any image type like png, jpg, jpeg, gif etc.

How to Compress Image Size In CodeIgniter

Follow the following steps and you can easily compress image size in codeigniter app:

  • Download Codeigniter Latest
  • Basic Configurations
  • Create Database With Table
  • Setup Database Credentials
  • Create Controller
  • Create Views
  • Start Development server

https://www.tutsmake.com/codeigniter-4-image-size-compress-example/

#codeigniter compress image size #codeigniter compress image size example #codeigniter 4 compress image size #image resize in codeigniter