0

Can someone help me out in get rid off the CrashLoopBackOff error

pod status Image

pod logs Image

pod describe Image

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

kubectl describe pod

C:\Users\Raviteja>kubectl describe pod example-mendixapp-master-547bf6649-8bvhw -n mendixns
Name:             example-mendixapp-master-547bf6649-8bvhw
Namespace:        mendixns
Priority:         0
Service Account:  default
Node:             aks-agentpool-19945052-vmss000001/10.224.0.5
Start Time:       Fri, 17 Mar 2023 03:42:52 +0530
Labels:           pod-template-hash=547bf6649
                  privatecloud.mendix.com/app=example-mendixapp
                  privatecloud.mendix.com/component=mendix-app
                  privatecloud.mendix.com/node-type=master
Annotations:      buildGeneration: 1
                  configHash: 9292077974a42727870cf948a61fff03c3d081db46cb713f91206d712e7ac75b
                  linkerd.io/inject: enabled
Status:           Running
IP:               10.244.1.254
IPs:
  IP:           10.244.1.254
Controlled By:  ReplicaSet/example-mendixapp-master-547bf6649
Containers:
  mendix:
    Container ID:   containerd://6981d76c579282fd6afb730dda5bef0e0671f2cf17e15bea2ebec49ff2ed7a82
    Image:          democontainer01.azurecr.io/democontainer01:example-mendixapp
    Image ID:       democontainer01.azurecr.io/democontainer01@sha256:714fc6c1e16f2fc3eafa5377afafd6defd7ced05c54248412ca9e1209eaf8a77
    Port:           8080/TCP
    Host Port:      0/TCP
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      Fri, 17 Mar 2023 12:25:49 +0530
      Finished:     Fri, 17 Mar 2023 12:25:49 +0530
    Ready:          False
    Restart Count:  107
    Limits:
      cpu:     500m
      memory:  512Mi
    Requests:
      cpu:      250m
      memory:   256Mi
    Liveness:   http-get http://:mendix-app/ delay=60s timeout=1s period=15s #success=1 #failure=3
    Readiness:  http-get http://:mendix-app/ delay=5s timeout=1s period=1s #success=1 #failure=3
    Startup:    http-get http://:mendix-app/ delay=0s timeout=1s period=10s #success=1 #failure=30
    Environment:
      M2EE_ADMIN_LISTEN_ADDRESSES:  127.0.0.1
      M2EE_ADMIN_PORT:              9000
      M2EE_ADMIN_PASS:              <set to the key 'adminpassword' in secret 'example-mendixapp-m2ee'>  Optional: false
      MY_ENVIRONMENT_VARIABLE:      debug
      JAVA_TOOL_OPTIONS:            -javaagent:/opt/mendix/mxagent/mx-agent.jar=config=/opt/mendix/mxagent/config/mxagent.json,instrumentation_config=/opt/mendix/mxagent/config/mxagent-instrumentation.json -Dhttp.proxyHost=10.0.0.100 -Dhttp.proxyPort=8080 -Dhttps.proxyHost=10.0.0.100 -Dhttps.proxyPort=8443 -Dhttp.nonProxyHosts="localhost|host.example.com"
    Mounts:
      /etc/shared-config from shared-config (rw)
      /opt/mendix/mxagent/config from mxagent-config (rw)
  m2ee-sidecar:
    Container ID:  containerd://7f4ca6e2f26f0a18d5759a68b278c480e96aee06a27fec25fea50b9833b9799e
    Image:         private-cloud.registry.mendix.com/mx-m2ee-sidecar:2.5.1
    Image ID:      private-cloud.registry.mendix.com/mx-m2ee-sidecar@sha256:d67a1af7af69b58a8d286794a1c2cfcf2946d49321b2d3ab83c56d1128c042ac
    Ports:         8800/TCP, 8900/TCP
    Host Ports:    0/TCP, 0/TCP
    Args:
      -prometheus-forwarder=true
    State:          Running
      Started:      Fri, 17 Mar 2023 03:42:53 +0530
    Ready:          True
    Restart Count:  0
    Limits:
      cpu:     250m
      memory:  32Mi
    Requests:
      cpu:     100m
      memory:  16Mi
    Environment:
      MX_NODE_TYPE:  master
    Mounts:
      /opt/mendix/client-certs from client-certs (ro)
      /opt/mendix/config from runtime-config (ro)
      /opt/mendix/m2ee from m2ee-config (ro)
      /opt/mendix/services from services (ro)
      /opt/mendix/shared-config from shared-config (rw)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  m2ee-config:
    Type:                Projected (a volume that contains injected data from multiple sources)
    SecretName:          example-mendixapp-m2ee
    SecretOptionalName:  <nil>
  runtime-config:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      example-mendixapp-runtime-config
    Optional:  false
  services:
    Type:                Projected (a volume that contains injected data from multiple sources)
    SecretName:          example-mendixapp-database
    SecretOptionalName:  <nil>
    SecretName:          example-mendixapp-file
    SecretOptionalName:  <nil>
  client-certs:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  example-mendixapp-m2ee
    Optional:    false
  shared-config:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:
    SizeLimit:  4Mi
  mxagent-config:
    Type:        ConfigMap (a volume populated by a ConfigMap)
    Name:        example-mendixapp-runtime-config
    Optional:    false
QoS Class:       Burstable
Node-Selectors:  <none>
Tolerations:     node.kubernetes.io/memory-pressure:NoSchedule op=Exists
                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                 node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason   Age                  From     Message
  ----     ------   ----                 ----     -------
  Warning  BackOff  37s (x2726 over 8h)  kubelet  Back-off restarting failed container

yaml script

apiVersion: privatecloud.mendix.com/v1alpha1
kind: MendixApp
metadata:
  name: example-mendixapp
spec:
  database: # Specification of Database CR
    servicePlan: dbtest
  storage: # Specification of Storage CR
    servicePlan: sptest
  mendixRuntimeVersion: 7.23.3.48173 # Mendix version to use for placeholder runtime image
  sourceURL: https://mendix140323.blob.core.windows.net/mendix/mendixmda.mda # URL of App's source MDA
  appURL: example-mendixapp.k8s-cluster.example.com # URL to access the app
  tls: # Optional, can be omitted : set a custom TLS configuration, overriding the default operator configuration
    # Enable or disable TLS for the app
    enableTLS: true
    # Optional: name of an existing kubernetes.io/tls secret containing the TLS certificate 
    #secretName: example-mendixapp-cert
    # Optional: TLS certificate value (tls.crt)
    certificate: |-
      -----BEGIN CERTIFICATE-----
      [...]
      -----END CERTIFICATE-----      
    # Optional: TLS key value (tls.key)
    key: |-
      -----BEGIN PRIVATE KEY-----
      [...]
      -----END PRIVATE KEY-----      
  replicas: 1 # Number of replicas, set to 0 to stop all replicas
  resources: # Optional, can be omitted : set resources for Mendix Runtime container 
    limits: # Upper limit - process will be stopped if it tries to use more
      cpu: 500m # 500 millicores - half of a vCPU
      memory: 512Mi # 512 megabytes - suitable for small-scale non-production apps
    requests: # Lower limit - needs at least these resources
      cpu: 250m
      memory: 256Mi
  runtimeDeploymentPodAnnotations: # Optional, can be omitted : set custom annotations for Mendix Runtime Pods
    # example: inject the Linkerd proxy sidecar
    linkerd.io/inject: enabled
  serviceAnnotations: # Optional, can be omitted : specify the Service annotations
    # example: custom AWS CLB configuration
    service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
    service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:eu-west-1:account:certificate/id
    service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
  endpointAnnotations: # Optional, can be omitted : set custom annotations for Ingress or OpenShift Route objects
    # example: allow uploads of files up 100 MB in the NGINX Ingress Controller
    nginx.ingress.kubernetes.io/proxy-body-size: 100m
    # example: deny access to /rest-doc
    nginx.ingress.kubernetes.io/configuration-snippet: |
      location /rest-doc {
        deny all;
        return 403;
      }      
  ingressClassName: alb # Optional, can be omitted : specify the Ingress class
  ingressPath: "/" # Optional, can be omitted : specify the Ingress path. Anything other than "/" or "/*" will be ignored as Mendix applications don't support path based routing
  ingressPathType: ImplementationSpecific # Optional, can be omitted : specify the Ingress pathType
  runtime: # Configuration of the Mendix Runtime
    logAutosubscribeLevel: INFO # Default logging level
    mxAdminPassword: V2VsYzBtZSE= # base64 encoded password for MendixAdmin user. In this example, 'Welc0me!'; can be left empty keep password unchanged
    debuggerPassword: V2VsYzBtZSE= # base64 encoded password for debuggerPassword. In this example, 'Welc0me!';
    dtapMode: P # Security & runtime mode: P for production, D for development
    logLevels: # Optional, can be omitted : set custom log levels for specific nodes
      NodeOne: CRITICAL
      NodeTwo: DEBUG
    microflowConstants: # Optional, can be omitted : set values for microflow constants
      MyFirstModule.Constant: "1234"
      Atlas_UI_Resources.Atlas_UI_Resources_Version: "2.5.4"
    scheduledEventExecution: SPECIFIED # Optional, can be omitted: specify which scheduled events should be enabled: ALL/NONE/SPECIFIED
    myScheduledEvents: # List which scheduled events should be enabled; should only be used if scheduledEventExecution is set to SPECIFIED
      - MyFirstModule.MyScheduledEvent
    # Mendix Runtime Jetty options, in JSON format; validated and applied by the mx-m2ee-sidecar container
    jettyOptions: |-
      {
        "max_form_content_size": 10485760,
        "use_blocking_connector": false
      } 
    environmentVariables: # Optional, can be omitted : set environment variables for the Mendix Runtime container
      - name: MY_ENVIRONMENT_VARIABLE # name of the environment variable
        value: debug # value of the environment variable
        # valueFrom can be used instead of value to load values from a Secret:
        #valueFrom:
        #  secretKeyRef:
        #    name: proxy-secret
        #    key: java-proxy-secret
      - name: JAVA_TOOL_OPTIONS # name of the environment variable
        value: -Dhttp.proxyHost=10.0.0.100 -Dhttp.proxyPort=8080 -Dhttps.proxyHost=10.0.0.100 -Dhttps.proxyPort=8443 -Dhttp.nonProxyHosts="localhost|host.example.com"     
    clientCertificates: # Optional, can be omitted : set client certificates for TLS authentication
      - key: Q0VSVElGSUNBVEU= # base64-encoded PKCS12 certificate
        password: bXg0cGMNCg==  # base64-encoded password for the certificate, cannot be empty
        pinTo: # Optional, list of web services or domain names where this certificate should be used
        - "www.example.com"
        - "service.www.example.com"
    # All custom Mendix Runtime parameters go here, in JSON format; validated and applied by the mx-m2ee-sidecar container
    customConfiguration: |-
      {
        "ApplicationRootUrl": "https://myapp1-dev.mendix.example.com"
      }      
  runtimeMetricsConfiguration: # Optional, can be omitted : set Runtime metrics configuration
    mode: native # Metrics collection mode : native or compatibility
    interval: "PT1M" # Optional, can be omitted : set Prometheus scrape interval
    mxAgentConfig: |- # Optional, can be omitted : specify configuration for collecting additional metrics
      {
        …
      }
    mxAgentInstrumentationConfig: |- # Optional, can be omitted : specify instrumentation configuration for collecting additional metrics
      {
        …
      }

0 Answers0