Açıklaması şöyle
Below is an example Kubernetes Manifest that you can use to create a ResourceQuota in a Namespace. The Namespace in this example is called golangapp.When setting up Resource Quotas in a Namespace, remember that there should be a fair amount of architecture design and decision-making around the process because Pods won’t deploy if the Quota has been met. For example, if you limit the memory to 512Mi, but you try to give a Pod 2GB of memory, there will be an error that looks similar to the below.Error from server (Forbidden):error when creating "name_of_manifest.yaml": pods"app name" is forbidden:exceeded quota: memorylimit
Şöyle yaparız
apiVersion: v1kind: ResourceQuotametadata:name: memorylimitnamespace: golangappspec:hard:requests.memory: 512Milimits.memory: 512Mi
Hiç yorum yok:
Yorum Gönder