question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: deployment.apps not found even though the deployment exists

See original GitHub issue

What happened?

The action uses a deployment file and it successfully deploys the application. But when it goes to check the status of deployment (Checking manifest stability), it throws "Error from server (NotFound): deployments.apps “test-deployment” not found.

I had used this action before and was working well. Not sure how but suddenly I started receiving this error. Below is the configuration,

- name: Deploy to AKS
  uses: Azure/k8s-deploy@v4.6
  with:
    resource-group: ${{ env.AKS_RESOURCE_GROUP_NAME }}
    name: ${{ env.AKS_CLUSTER_NAME }}
    action: deploy
    namespace: 'default'
    manifests: .k8s/test-deployment.yml
    images: ${{ env.REGISTRY_NAME }}.azurecr.io/test-repo:${{ github.sha }}
    private-cluster: true
    annotate-namespace: false

Version

  • I am using the latest version

Runner

GitHub hosted runner

Relevant log output

image

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

2reactions
jaiveerkcommented, Nov 16, 2022

Thanks!

We’ve identified the source of the issue and are working on a fix now. Thank you both for bringing this to our attention!

1reaction
jmasengeshocommented, Nov 16, 2022

@jaiveerk Let me see how to share my manifests. FYI, I am not deploying in the default namespace. My manifest includes : 1 deployment, a configmap, and 2 services. Everything deploys and works as expected. Just the rollout process at the end.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Error from server (NotFound): deployments.apps "wordpress ...
What you are doing is create a pod with kubectl run and expose a deployment with kubectl expose deployment . Those are two...
Read more >
deployments.apps "devspace-default" already exists #447
I have a working devspace config for one project (microservice) with Helm, but now try to extend it to work with multiple projects....
Read more >
tiered deployment server says deployment apps aren't installing
Solved: I have a Linux host that is both a deployment server and deployment client in a tiered deployment server configuration. For all...
Read more >
Azure Pipeline Deployment to App Service fails - Microsoft Learn
Azure Pipeline Deployment to App Service fails: "Resource doesn't exist. Resource should exist before deployment". But App Service DOES exist.
Read more >
'deployments.extensions already exists' error during helm ...
Problem. When you deploy a custom Helm chart, the UI returns the following error: Internal service error : rpc error: code = Unknown...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found