Editing Kubectl get certificates

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  [[kubectl get]] certificate
 
  [[kubectl get]] [[certificaterequest]]
 
  [[kubectl get]] certificatesigningrequest
 
  
 
+
  kubectl get certificates
  [[kubectl get]] certificates
 
 
  NAME                        READY  SECRET                AGE
 
  NAME                        READY  SECRET                AGE
 
  your-prod-admin-tls-cert    False  your-prod-admin-tls-cert    21h
 
  your-prod-admin-tls-cert    False  your-prod-admin-tls-cert    21h
 
  your-prod-ssl-certificate  False  your-prod-ssl-certificate  21h
 
  your-prod-ssl-certificate  False  your-prod-ssl-certificate  21h
 
kubectl get certificate your-certname -o yaml
 
kubectl get certificate your-certname -o yaml | grep reason
 
 
k get certificate -A
 
NAMESPACE  NAME                    READY  SECRET                  AGE
 
grafana    [[quickstart-example-tls]]  False  quickstart-example-tls  101s
 
 
kubectl get certificates
 
[[error: the server doesn't have a resource type "certificates"]]
 
 
 
.../...
 
Status:
 
  Conditions:
 
    Last Transition Time:        2012-07-13T13:34:16Z
 
    Message:                    Issuing certificate as Secret does not exist
 
    Reason:                      DoesNotExist
 
    Status:                      False
 
    Type:                        Ready
 
    Last Transition Time:        2012-07-13T13:34:16Z
 
    Message:                    Issuing certificate as Secret does not exist
 
    Reason:                      DoesNotExist
 
    Status:                      True
 
    Type:                        Issuing
 
  Next Private Key Secret Name:  yourprod-admin-tls-cert-trkl
 
Events:                          <none>
 
.../...
 
 
== Examples ==
 
 
== Examples ==
 
kubectl get certificate your-certname -o yaml
 
 
 
apiVersion: cert-manager.io/v1
 
kind: Certificate
 
metadata:
 
  creationTimestamp: "2022-07-19T10:04:17Z"
 
  generation: 1
 
  labels:
 
    chart: efi-1.2.0
 
    heritage: [[Tiller]]
 
    release: your-release
 
  name: prod-admin-tls-cert
 
  namespace: yourns
 
  resourceVersion: "8072080"
 
  uid: 470e7384-c120-4e08-8d2b-b7152e9521d3
 
spec:
 
  dnsNames:
 
  - your-subdomain.yourdomain.com
 
  issuerRef:
 
    kind: ClusterIssuer
 
    name: letsencrypt-clouddns-prod
 
  secretName: your-secret-nae
 
status:
 
  conditions:
 
  - lastTransitionTime: "2022-07-19T10:04:17Z"
 
    message: '[[Existing issued Secret is not up to date for spec]]: [spec.commonName
 
      spec.dnsNames]'
 
    reason: [[SecretMismatch]]
 
    status: "False"
 
    type: Ready
 
  - lastTransitionTime: "2022-07-19T10:04:18Z"
 
    message: Issuing certificate as Secret was previously issued by Issuer.cert-manager.io/
 
    reason: [[IncorrectIssuer]]
 
    status: "True"
 
    type: Issuing
 
  nextPrivateKeySecretName: prod-admin-tls-cert-f6zts
 
  notAfter: "2022-08-21T13:19:36Z"
 
  notBefore: "2022-05-23T13:19:37Z"
 
  renewalTime: "2022-07-22T13:19:36Z"
 
 
== Related ==
 
* <code>[[kubectl get issuer]]</code>
 
* [[kubectl get csr]]
 
  
 
== See also ==
 
== See also ==
* {{kubectl certificate}}
+
* {{kubectl get}}
 
* {{cert-manager}}
 
* {{cert-manager}}
  
 
[[Category:K8s]]
 
[[Category:K8s]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: