generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 52
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
The error is related to the certificate used for debugging the webhook locally. #497
Comments
I have solved it |
Could you explain? |
@kannon92 hi, thank you for ans. Do you mean to explain how I solved the problem? or what's the problem I'm having? |
Yes, please explain in case someone stumbles upon the closed issue. |
➜ ~ kubectl get secret -njobset-system -oyaml
apiVersion: v1
items:
- apiVersion: v1
data:
ca.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURIVENDQWdXZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFsTVE4d0RRWURWUVFLRXdacWIySnoKWlhReEVqQVFCZ05WQkFNVENXcHZZbk5sZEMxallUQWVGdzB5TkRBME1EVXhNREUyTURkYUZ3MHpOREEwTURNeApNVEUyTURkYU1DVXhEekFOQmdOVkJBb1RCbXB2WW5ObGRERVNNQkFHQTFVRUF4TUphbTlpYzJWMExXTmhNSUlCCklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFzWC9RMndoR3hmd0o4eVJhc2dHZmswZTYKSm9QcTFubzNiSlpjcFRDNUI1OXhsSnZZNEwvcEN0aDhKYnQya2tHR0dLM21LaUpwbUZXV1BoM0FJWXA5ZVRzdQpUN0lEVGNUa0ZNbVJ5UXZpamc0UGg3R2EvdnNPTjZiWERnWThDOVBuRStEa25rcnNrVlFjclg3RUw0VXNkREQvCk5vcTNNVnk5RStZTkFNcnpFa05OYmZZVENJdjJxR25HYjYxbkVKK0x1VTY4ajBscWJFWjVxRUJOdUR6UzhnbWgKR1Y4Sm5kVDVJa2N3eXc4Z1FqcDgyQ29EbVo1YWVCNnN5QmpQT0VqMm9TUmF1aUhLalFzRDVSYkl0OGwwRjFaOAp5L1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bXlmdkFvR0JBTHFvYmlxL05ObmRESUhGS0xrWk4vVE45NEJETXd6TzhvSlUKQUo4MkpSRUp1U2o0YStmUi9vUnRHTTRHUDUxNFVPeGg2bk5GbnVpelFiTnU3NUxKako3VDViV3VEb2xJWkphQQpDM2U4UFFoWEtIdjdMa3dQejlwM0NrV1dEZnk4ZWxvSURQc3gwSXdPcHZPQ3U2OE9aM2FDdWpyejViRVR0LzRaCnBkQlZ2UkdKQW9HQkFLNUQrem9lN0NHT3E3ZVZGSENLMVhGcGlQMlo3STF1MTdFcTBGUmMvNGphNUk0WXZ6YnMKVEc4eEtjTTZLZ1BtSmRLRkcwSHYzcDdtM2lxOU5JZlJGZ3orUVZPSjV5SFE5YXJBVnFUOVZsWFZBL2FTNjMyMAp6UjRlOU1iSFFtQVpOQUEzZkpUZ283VXJYNncxdk5yOTBrREpVK2RRenZZRWFGK2ViRWYzWkc3MgotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo=
kind: Secret
metadata:
creationTimestamp: "2024-04-05T11:15:53Z"
name: jobset-webhook-server-cert
namespace: jobset-system
resourceVersion: "15807"
uid: 383be8f5-8423-4705-ad32-52c39de2ad83
type: Opaque
kind: List
metadata:
resourceVersion: "" Set the dns variable to "host.docker.internal" // pkg/util/cert/cert.go
const (
serviceName = "jobset-webhook-service"
secretName = "jobset-webhook-server-cert"
secretNamespace = "jobset-system"
certDir = "/tmp/k8s-webhook-server/serving-certs"
validateWebhookConfName = "jobset-validating-webhook-configuration"
mutatingWebhookConfName = "jobset-mutating-webhook-configuration"
caName = "jobset-ca"
caOrg = "jobset"
)
// dnsName is the format of <service name>.<namespace>.svc
// var dnsName = fmt.Sprintf("%s.%s.svc", serviceName, secretNamespace)
var dnsName = "host.docker.internal" |
11 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sor, I have a beginner's question.
I'm trying to debug a program in GoLand IDE locally, but when I modify the configuration file, I encounter some certificate authentication errors. I would like to ask how you configure it when developing locally.
How to configure a certificate.
The text was updated successfully, but these errors were encountered: