Unable to deploy the kubernetes resources using skaffold.

Vinayak Patil 0 Reputation points
2024-04-17T07:02:18.9066667+00:00

I am getting below error while running the skaffold in kubernetes. Please help me on this.

Error code :-

enerating tags...

  • microservice1 -> microservice1:latest
  • microservice2 -> microservice2:latest

Some taggers failed. Rerun with -vdebug for errors.

Checking cache...

  • microservice1: Found Locally
  • microservice2: Found Locally

Tags used in deployment:

  • microservice1 -> microservice1:08dbbbde59bb5784522dac419a90b4ccd467c5664cf710bd648c3fdfef7c7326
  • microservice2 -> microservice2:c5e5d6fc8ddcb634bb9e09a496ced76f08ce9f855de7eb1da065cb42948b1934

Starting deploy...

  • deployment.apps/microservice1 created
  • deployment.apps/microservice2 created

Waiting for deployments to stabilize...

  • deployment/microservice1: creating container microservice1
    • pod/microservice1-667dd5b4c5-vtkc2: creating container microservice1
    • pod/microservice1-667dd5b4c5-xqjzq: creating container microservice1
  • deployment/microservice2: creating container microservice2
    • pod/microservice2-6df6cb6658-2fv6k: creating container microservice2
  • deployment/microservice2: container microservice2 is backing off waiting to restart
    • pod/microservice2-6df6cb6658-nkw95: container microservice2 is backing off waiting to restart

      [microservice2-6df6cb6658-nkw95 microservice2] Hello from Microservice 2

  • deployment/microservice2 failed. Error: container microservice2 is backing off waiting to restart.

Cleaning up...

  • deployment.apps "microservice1" deleted
  • deployment.apps "microservice2" deleted

1/2 deployment(s) failed

Microservice1 yaml file

apiVersion: apps/v1
kind: Deployment
metadata:
  name: microservice1
spec:
  replicas: 1
  selector:
    matchLabels:
      app: microservice1
  template:
    metadata:
      labels:
        app: microservice1
    spec:
      containers:
      - name: microservice1
        image: microservice1

micro service 2 yaml file

apiVersion: apps/v1
kind: Deployment
metadata:
  name: microservice2
spec:
  replicas: 1
  selector:
    matchLabels:
      app: microservice2
  template:
    metadata:
      labels:
        app: microservice2
    spec:
      containers:
      - name: microservice2
        image: microservice2

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,866 questions
{count} votes