AKS с Keda: pod удаляются во время выполнения

Я попробовал Keda с AKS, и я очень ценю, когда модуль автоматически создается на основе задания очереди Azure Dev Ops для выпуска и сборки.

Однако я заметил кое-что странное, и часто AKS/Keda удаляют модуль во время обработки, что приводит к сбою рабочего процесса.

Сообщение читаетWe stopped hearing from agent aks-linux-768d6647cc-ntmh4. Verify the agent machine is running and has a healthy network connection. Anything that terminates an agent process, starves it for CPU, or blocks its network access can cause this error. For more information, see: https://go.microsoft.com/fwlink/?linkid=846610

Ожидаемое поведение: модули должны выполнить задачи, после чего Keda/AKS сможет удалить этот модуль.

Делюсь с вами своим файлом keda yml:

      # deployment.yaml
apiVersion: apps/v1 # The API resource where this workload resides
kind: Deployment # The kind of workload we're creating
metadata:
  name: aks-linux # This will be the name of the deployment
spec:
  selector: # Define the wrapping strategy
    matchLabels: # Match all pods with the defined labels
      app: aks-linux # Labels follow the `name: value` template
  replicas: 1
  template: # This is the template of the pod inside the deployment
    metadata: # Metadata for the pod
      labels:
        app: aks-linux
    spec:
      nodeSelector:
        agentpool: linux
      containers: # Here we define all containers
        - image: <My image here>
          name: aks-linux
          env:
            - name: "AZP_URL"
              value: "<myURL>"
            - name: "AZP_TOKEN"
              value: "<MyToken>"
            - name: "AZP_POOL"
              value: "<MyPool>"
          resources:
            requests: # Minimum amount of resources requested
              cpu: 2
              memory: 4096Mi
            limits: # Maximum amount of resources requested
              cpu: 4
              memory: 8192Mi

Я использовал последнюю версию AKS и Keda. Есть идеи ?

0 ответов

Другие вопросы по тегам