-
Notifications
You must be signed in to change notification settings - Fork 115
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
Can't create prometheus ServiceMonitor using CustomResource #1217
Comments
|
That error was solved when I removed the metadata I was using from the deployment output. Now I am getting this error.
Every other resource gets created properly except for the ServiceMonitor. Do custom resources require some elevated privileges or something ? |
I don't think this error is related to privileges. It looks like your Perhaps you are not setting the provider on this resource? |
This is likely a dupe of #1032 |
Problem description
I have the prometheus operator installed in my k8s cluster along with all the CRD's. I am trying to create a CustomResource object for the ServiceMonitor CRD by extending the k8s.apiextensions.CustomResource object like the following.
I then instantiate this object when I create a deployment for my service . . . .
I am getting the following error about aws credentials.
Errors & Logs
Diagnostics: kubernetes:monitoring.coreos.com:ServiceMonitor (verifier-dev-service-monitor): error: kubernetes:monitoring.coreos.com/v1:ServiceMonitor resource 'affinity-verifier-dev-service-monitor' has a problem: invalid use of reserved internal annotation "pulumi.com/autonamed"
There are no concrete examples of how to do something like this using the Pulumi CustomResource. Maybe something can be added to the examples or docs.
Affected product version(s)
v2.7.1
The text was updated successfully, but these errors were encountered: