Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I roll back deployment #6442

Open
chappie-k opened this issue Oct 11, 2024 · 1 comment
Open

How do I roll back deployment #6442

chappie-k opened this issue Oct 11, 2024 · 1 comment
Labels
Waiting on feedback Issues that require feedback from User/Other community members

Comments

@chappie-k
Copy link

Is your task related to a problem? Please describe

kubenetes version:1.29.1
kubenetes-client 6.13.4

when i exec the following code:

DeploymentRollback deploymentRollback = new DeploymentRollbackBuilder()
            .withApiVersion("app/v1")
            .withName(name)
            .withRollbackTo(new RollbackConfig(revision)).build();
    kubernetesClient.apps().deployments().inNamespace(K8SConfig.K8S_DEFAULT_NAMESPACE).withName(name).rollback(deploymentRollback);

errormessage:
Message: the server could not find the requested resource. Received status: Status(apiVersion=v1, code=404, details=StatusDetails(causes=[], group=null, kind=null, name=null, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=the server could not find the requested resource, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=NotFound, st

help me!!!

Describe the solution you'd like

rollout deployment could worked

Describe alternatives you've considered

No response

Additional context

No response

@rohanKanojia
Copy link
Member

@chappie-k : Hello, from error stacktrace it looks like the Deployment is not present in the cluster:

Message: the server could not find the requested resource. 

Are you sure that the Deployment you're trying to rollout is present in the target cluster?

@rohanKanojia rohanKanojia added the Waiting on feedback Issues that require feedback from User/Other community members label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting on feedback Issues that require feedback from User/Other community members
Projects
None yet
Development

No branches or pull requests

2 participants