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
{{ message }}
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
Short: "Print the status of the cluster and each node",
Args: cobra.MinimumNArgs(0),
Run: func(cmd *cobra.Command, args []string) {
if err := provision.Status(getPlatform(cmd)); err != nil {
logger.Fatalf("Failed to get cluster status, %s", err)
}
},
}
func init() {
var restartLimit time.Duration
pods := &cobra.Command{
Use: "pods",
Short: "Print the status of unhealthy pods across the cluster",
Args: cobra.MinimumNArgs(0),
Run: func(cmd *cobra.Command, args []string) {
if err := provision.PodStatus(getPlatform(cmd), restartLimit); err != nil {
logger.Fatalf("Failed to get pod status, %s", err)
}
},
}
pods.Flags().DurationVar(&restartLimit, "restart-limit", 3*time.Minute, "The previous time window in which if a pod restart it is considered unhealthy")