Akhil Addagulla:
Hi Team,
I’m practicing Certificate API topic and created the CSR as mentioned below. After creating the CSR when run “kubectl get csr”. I can’t view it. Am I missing something
Note: I’ll add the group details.
root@controlplane ~ ➜ cat s.yaml
---
apiVersion: <http://certificates.k8s.io/v1|certificates.k8s.io/v1>
kind: CertificateSigningRequest
metadata:
name: akshay
spec:
request: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURSBSRVFVRVNULS0tLS0KTUlJQ1ZqQ0NBVDRDQVFBd0VURVBN
QTBHQTFVRUF3d0dZV3R6YUdGNU1JSUJJakFOQmdrcWhraUc5dzBCQVFFRgpBQU9DQVE4QU1JSUJD
Z0tDQVFFQXhyejllUDBWbmI0OFpqVk9LeXZKKzZGTTR3Q2M1UEJSNlpkRUhwcmQ2UXUrCmJRQlND
cnd1YXNZVVg1U2VMYzgrSDNCNnIvTEN3c29lc1dLTXM4L1R3SDA0U3hyUjYvbFk5UWo2eEVFbTFM
c3YKRWt3K2NVM0RHMkt1aFBEaWpkWTZsaGpzSFlldVZ2dDBmNlR6dmRjejFFNWdQSWVFbUQ5Zm44
c3NxNDlEOEY3OQpKTmJzRDVvWkxuU2hxNFNWS2lRbFdCNlZZRTBCWXk5USt1SUIxT09oZXZIUjZy
WXJWejJWVkJDaFc2MmNPdjBRCkdSUjlQN2JZSHBBbGdsTkRqUG1BZHNwZlNqWHoxSUVrNU1xUjVI
RGRUdGFJK1JQSFBSRkUvMHlGdTdCVkFzRGcKaUY2enBGR2FJNFR0VVkxSk1JcVJZQUdlQjViTTV3
cHYrU2dZL0JYQ3BRSURBUUFCb0FBd0RRWUpLb1pJaHZjTgpBUUVMQlFBRGdnRUJBSXcyVmFOd0dY
aDAySTFWZG1FakZYNlFFV1JFc0hFMFNzMURWMUhibms0L1cwcUpMQTNWClVqeEFyY0ZGVEZidThJ
N0VFTUFyTysyRVVIMGxQUStNRnB0NjZBcHlSWUJWUzkwTVZGK3dVc1crRVMvM3pPUjQKRExyY0hk
bzRkbmxreU03cklqUU1EM0N2bFNQbTRweXA2aUhyWU5qbzRjblZwWXRrbTM1aWNRWEpTdkFzWTlF
cQpyL2FtUHFRR2l2MndVQzVRbTlrQVZwU3o4L1l1aitzZUpMSEFLcG8zTTVvVkdGRnJvWnE1cndC
cjZIQ3hkV0FYClRZL3BwSHBkZVVCcndOUU9tR0Zhdk5mL1ZhQ3IzMklJN2MvQnFsRUpEWEE3Q1FD
eHA1MjRNcWVxdUh5TUwrcWkKMVRWSWdGbmJ6WDVHK1ZHRlh1NmNkQnh2Y0M3eHZoZXprMUk9Ci0t
LS0tRU5EIENFUlRJRklDQVRFIFJFUVVFU1QtLS0tLQo=
signerName: <http://kubernetes.io/kube-apiserver-client|kubernetes.io/kube-apiserver-client>
expirationSeconds: 86400 # one day
usages:
- client auth
root@controlplane ~ ➜ kubectl get csr
NAME AGE SIGNERNAME REQUESTOR REQUESTEDDURATION CONDITION
csr-q5kwj 30m <http://kubernetes.io/kube-apiserver-client-kubelet|kubernetes.io/kube-apiserver-client-kubelet> system:node:controlplane <none> Approved,Issued