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

services "sealed-secrets-controller" not found #758

Closed
bidandows opened this issue Feb 27, 2022 · 4 comments
Closed

services "sealed-secrets-controller" not found #758

bidandows opened this issue Feb 27, 2022 · 4 comments
Labels
triage Issues/PRs that need to be reviewed

Comments

@bidandows
Copy link

Which component:
The name (and version) of the affected component (controller or kubeseal)
Helm chart ersion 2.1.3 and sealed-secrets-v0.17.3
Describe the bug
A clear and concise description of what the bug is.
I got error message after instaling the controller and kubeseal binary

To Reproduce
Steps to reproduce the behavior:

  1. Installed Helm chart via terraform
  2. Downloaded kubeseal-0.17.3-linux-amd64.tar.gz file and installed it
  3. rune kubeseal secret-source-file.yaml destination-sealed-secret.yaml
  4. I got this error message error: cannot get sealed secret service: services "sealed-secrets-controller" not found

Expected behavior
should seal secret

Version of Kubernetes:

  • Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.4", GitCommit:"e6c093d87ea4cbb530a7b2ae91e54c0842d8308a", GitTreeState:"clean", BuildDate:"2022-02-16T12:38:05Z", GoVersion:"go1.17.7", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"21+", GitVersion:"v1.21.5-eks-bc4871b", GitCommit:"5236faf39f1b7a7dabea8df12726f25608131aa9", GitTreeState:"clean", BuildDate:"2021-10-29T23:32:16Z", GoVersion:"go1.16.8", Compiler:"gc", Platform:"linux/amd64"}
WARNING: version difference between client (1.23) and server (1.21) exceeds the supported minor version skew of +/-1

Additional context
Add any other context about the problem here.

@github-actions github-actions bot added the triage Issues/PRs that need to be reviewed label Feb 27, 2022
@surajnarwade
Copy link
Contributor

can you check kubectl get service sealed-secrets-controller -n kube-system ?

@bidandows
Copy link
Author

yes here it is sealed-secrets ClusterIP 172.20.233.150 <none> 8080/TCP 43h

@bidandows
Copy link
Author

issue solved, It's not really an issue maybe the documentation needs to be updated.
This is how I managed to to use kubeseal kubeseal --controller-name=sealed-secrets --controller-namespace=kube-system --format yaml <secret.yaml>sealed.yaml

@hpl002
Copy link

hpl002 commented Jul 20, 2022

issue solved, It's not really an issue maybe the documentation needs to be updated. This is how I managed to to use kubeseal kubeseal --controller-name=sealed-secrets --controller-namespace=kube-system --format yaml <secret.yaml>sealed.yaml

This screws me every time.

TLDR for the next guy/gal:
You may have to specify controller name and namespace. Be conscious of defaults :)

      --controller-name string           Name of sealed-secrets controller. (default "sealed-secrets-controller")
      --controller-namespace string      Namespace of sealed-secrets controller. (default "kube-system")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issues/PRs that need to be reviewed
Projects
None yet
Development

No branches or pull requests

3 participants