You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
check resource with kind: ResourceQuota with label: capsule.clastix.io/tenant: ;
check rbac permissions to get ResourceQuota objects;
if ResourceQuota available with correct label and permission enough to get resources - display widget;
in two ResourceQuota expected:
apiVersion: v1
kind: ResourceQuota
metadata:
name: capsule-eks-vp-release-1
namespace: eks-vp-release
labels:
capsule.clastix.io/resource-quota: '1'
capsule.clastix.io/tenant: eks-vp-release
annotations:
quota.capsule.clastix.io/hard-pods: '100'
quota.capsule.clastix.io/used-pods: '9'
Get Capacity for resources from: metadata.annotations.quota.capsule.clastix.io/hard-pods and current usage: metadata.annotations.quota.capsule.clastix.io/used-pods;
Get Capacity for resources from: metadata.annotations.quota.capsule.clastix.io/hard-limits.cpu, metadata.annotations.quota.capsule.clastix.io/hard-limits.memory, metadata.annotations.quota.capsule.clastix.io/hard-requests.cpu, metadata.annotations.quota.capsule.clastix.io/hard-requests.memory and current usage: metadata.annotations.quota.capsule.clastix.io/used-limits.cpu, metadata.annotations.quota.capsule.clastix.io/used-limits.memory, metadata.annotations.quota.capsule.clastix.io/used-requests.cpu, metadata.annotations.quota.capsule.clastix.io/used-requests.memory
These fields may be absent or expanded;
The widget needs to display the consumption of each resource in real time;
if at least one of the parameters has reached the 90% mark - change the widget color;
The same approach we need to enable for resources that we deploy using platform;
get environment namespace from kind: Stage spec.namespace
check resource with kind: ResourceQuota with label: capsule.clastix.io/tenant: ;
check rbac permissions to get ResourceQuota objects;
if ResourceQuota available with correct label and permission enough to get resources - display widget;
use the same field and the same approach to display resources widget for environment like for platfom;
Make sure that we cover case whe we do not use capsule and ResourceQuota does not exist;
The text was updated successfully, but these errors were encountered:
Technical considerations:
check resource with kind: ResourceQuota with label: capsule.clastix.io/tenant: ;
check rbac permissions to get ResourceQuota objects;
if ResourceQuota available with correct label and permission enough to get resources - display widget;
in two ResourceQuota expected:
apiVersion: v1
kind: ResourceQuota
metadata:
name: capsule-eks-vp-release-1
namespace: eks-vp-release
labels:
capsule.clastix.io/resource-quota: '1'
capsule.clastix.io/tenant: eks-vp-release
annotations:
quota.capsule.clastix.io/hard-pods: '100'
quota.capsule.clastix.io/used-pods: '9'
apiVersion: v1
kind: ResourceQuota
metadata:
name: capsule-eks-vp-release-0
namespace: eks-vp-release
labels:
capsule.clastix.io/resource-quota: '0'
capsule.clastix.io/tenant: eks-vp-release
annotations:
quota.capsule.clastix.io/hard-limits.cpu: '7'
quota.capsule.clastix.io/hard-limits.memory: 6Gi
quota.capsule.clastix.io/hard-requests.cpu: '3'
quota.capsule.clastix.io/hard-requests.memory: 3Gi
quota.capsule.clastix.io/used-limits.cpu: 2256m
quota.capsule.clastix.io/used-limits.memory: 2934Mi
quota.capsule.clastix.io/used-requests.cpu: 446m
quota.capsule.clastix.io/used-requests.memory: 984Mi
Get Capacity for resources from: metadata.annotations.quota.capsule.clastix.io/hard-pods and current usage: metadata.annotations.quota.capsule.clastix.io/used-pods;
Get Capacity for resources from: metadata.annotations.quota.capsule.clastix.io/hard-limits.cpu, metadata.annotations.quota.capsule.clastix.io/hard-limits.memory, metadata.annotations.quota.capsule.clastix.io/hard-requests.cpu, metadata.annotations.quota.capsule.clastix.io/hard-requests.memory and current usage: metadata.annotations.quota.capsule.clastix.io/used-limits.cpu, metadata.annotations.quota.capsule.clastix.io/used-limits.memory, metadata.annotations.quota.capsule.clastix.io/used-requests.cpu, metadata.annotations.quota.capsule.clastix.io/used-requests.memory
These fields may be absent or expanded;
The widget needs to display the consumption of each resource in real time;
if at least one of the parameters has reached the 90% mark - change the widget color;
The same approach we need to enable for resources that we deploy using platform;
get environment namespace from kind: Stage spec.namespace
check resource with kind: ResourceQuota with label: capsule.clastix.io/tenant: ;
check rbac permissions to get ResourceQuota objects;
if ResourceQuota available with correct label and permission enough to get resources - display widget;
use the same field and the same approach to display resources widget for environment like for platfom;
Make sure that we cover case whe we do not use capsule and ResourceQuota does not exist;
The text was updated successfully, but these errors were encountered: