Um parágrafo da descrição do projeto vai aqui
Essas instruções permitirão que você obtenha uma cópia do projeto em operação na sua máquina local para fins de desenvolvimento e teste.
Consulte Implantação para saber como implantar o projeto.
| {{ define "slack.default.title" }} | |
| [ {{ .Status | toUpper }} ] | |
| {{ end }} | |
| {{ define "slack.default.message" }} | |
| {{ range . }} | |
| {{ if gt (len .Annotations.summary) 0 }}Alert Summary: {{ .Annotations.summary }} {{ end }} | |
| {{ if gt (len .Annotations.runbook_url) 0 }}Alert Runbook: {{ .Annotations.runbook_url }} {{ end }} | |
| Labels: |
| # Create Linux Azure AKS Spot instance Node Pool | |
| # Required extension: | |
| # az extension add --name aks-preview | |
| # | |
| resource "azurerm_kubernetes_cluster_node_pool" "nodepool_cpu_spot" { | |
| #availability_zones = [1, 2, 3] | |
| enable_auto_scaling = true | |
| kubernetes_cluster_id = azurerm_kubernetes_cluster.aks_cluster.id | |
| max_count = 3 | |
| min_count = 1 |
Um parágrafo da descrição do projeto vai aqui
Essas instruções permitirão que você obtenha uma cópia do projeto em operação na sua máquina local para fins de desenvolvimento e teste.
Consulte Implantação para saber como implantar o projeto.
| #!/bin/sh | |
| # based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d | |
| # delete all evicted pods from all namespaces | |
| kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
| # delete all containers in ImagePullBackOff state from all namespaces | |
| kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
| # delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces |