import { Move } from 'lucide-react'; import { EnvironmentId } from '@/react/portainer/environments/types'; import { Icon } from '@@/Icon'; import { TextTip } from '@@/Tip/TextTip'; import { Tooltip } from '@@/Tip/Tooltip'; import { Application } from '../../types'; import { useApplicationHorizontalPodAutoscalers } from '../../application.queries'; type Props = { environmentId: EnvironmentId; namespace: string; appName: string; app?: Application; }; export function ApplicationAutoScalingTable({ environmentId, namespace, appName, app, }: Props) { const { data: appAutoScalar } = useApplicationHorizontalPodAutoscalers( environmentId, namespace, appName, app ); return ( <>
Minimum instances | Maximum instances |
Target CPU usage
|
{appAutoScalar.spec?.minReplicas} | {appAutoScalar.spec?.maxReplicas} | {appAutoScalar.spec?.targetCPUUtilizationPercentage}% |