Kubernetes TLS

Posted by Vito on February 7, 2024
1
2
3
4
[root@k8s-master1 ~]# kubectl create secret tls zhch.lan \
                      --cert=/home/zc/cert/zhch.lan.crt \
                      --key=/home/zc/cert/zhch.lan.key
secret/zhch.lan created
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[root@k8s-master1 ~]# kubectl edit secret zhch.lan

# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: v1
data:
  tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUZuakNDQTRhZ0F3SUJBZ0lVWXhDSDhnWVRrL2hHK0lnSnd5QXhIdEtYN2Jzd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1pqRUxNQWtHQTFVRUJoTUNRMDR4RWpBUUJnTlZCQWdNQ1VkMVlXNW5aRzl1WnpFU01CQUdBMVVFQnd3SgpSM1ZoYm1kNmFHOTFNUTB3Q3dZRFZRUUtEQVI2YUdOb01RMHdDd1lEVlFRTERBUjZhR05vTVJFd0R3WURWUVFECkRBaDZhR05vTG14aGJqQWdGdzB5TXpFeU1URXdOakExTVRsYUdBOHlNVEl6TVRFeE56QTJNRFV4T1Zvd1pqRUwKTUFrR0ExVUVCaE1DUTA0eEVqQVFCZ05WQkFnTUNVZDFZVzVuWkc5dVp6RVNNQkFHQTFVRUJ3d0pSM1ZoYm1kNgphRzkxTVEwd0N3WURWUVFLREFSNmFHTm9NUTB3Q3dZRFZRUUxEQVI2YUdOb01SRXdEd1lEVlFRRERBaDZhR05vCkxteGhiakNDQWlJd0RRWUpLb1pJaHZjTkFRRUJCUUFEZ2dJUEFEQ0NBZ29DZ2dJQkFNMDNHNjV5OUlIR1VEdVMKWXpqNHdsMUpFNE9ZWlUyeXZZRWhTYzVaZngrYXVuM09MM1BRVG00eUY5cFIvMDlCYzRZNmcxU2NtSmhTWnI0dgpDNGFWS1FxcmtyYnhEM0VRREg0d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:54:48Z"
  name: zhch.lan
  namespace: default
  resourceVersion: "1416173"
  uid: 27e77d93-9329-4007-8c49-2e532caa7343
type: kubernetes.io/tls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[root@k8s-master1 ~]# cat /home/zc/cert/zhch.lan.crt
-----BEGIN CERTIFICATE-----
MIIFnjCCA4agAwIBAgIUYxCH8gYTk/hG+IgJwyAxHtKX7bswDQYJKoZIhvcNAQEL
BQAwZjELMAkGA1UEBhMCQ04xEjAQBgNVBAgMCUd1YW5nZG9uZzESMBAGA1UEBwwJ
R3Vhbmd6aG91MQ0wCwYDVQQKDAR6aGNoMQ0wCwYDVQQLDAR6aGNoMREwDwYDVQQD
DAh6aGNoLmxhbjAgFw0yMzEyMTEwNjA1MTlaGA8yMTIzMTExNzA2MDUxOVowZjEL
MAkGA1UEBhMCQ04xEjAQBgNVBAgMCUd1YW5nZG9uZzESMBAGA1UEBwwJR3Vhbmd6
aG91MQ0wCwYDVQQKDAR6aGNoMQ0wCwYDVQQLDAR6aGNoMREwDwYDVQQDDAh6aGNo
LmxhbjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAM03G65y9IHGUDuS
Yzj4wl1JE4OYZU2yvYEhSc5Zfx+aun3OL3PQTm4yF9pR/09Bc4Y6g1ScmJhSZr4v
C4aVKQqrkrbxD3EQDH4tG1vzkRfZNlE4P6lnWQf2KH8FeQtKnXzF6m1+v73H+BiP
br2yXRDjQCVZnPes94HnPLFDSaIsi0Mh6ansog3Hxnz2nvgEd8nwDzBasTpwL/GD
8YO8SyfhDpNmvj3flynd9MbEDJVppS7ZWl/TLmF4rDg/VEBdJERGNe2N1bDw+uPu
5UwXWff77nVsnM/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sLhaTty3v1zdTrX6u73rSn7LYUk9KhTF4wj1xRbVJ7MwDMoMO6qC11sL
yis86lR3wp6yRi9G1JjNjlM3RkVWWeB3EXPMGV9/2iTlNssJiM2DvrvHKXpw3XLb
QU8urJTktmvSA+qMKmBJEc+eqa/S9962OxC/0fa0NAC1ZlIpzO4AJH0PewGf8AUe
0Hzjw5AGhOgFAH2K8BNI8vM9AwKhOg==
-----END PRIVATE KEY-----
[root@k8s-master1 ~]# 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[root@k8s-master1 ~]# cat /home/zc/cert/zhch.lan.crt | base64
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUZuakNDQTRhZ0F3SUJBZ0lVWXhDSDhnWVRr
L2hHK0lnSnd5QXhIdEtYN2Jzd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1pqRUxNQWtHQTFVRUJoTUNR
MDR4RWpBUUJnTlZCQWdNQ1VkMVlXNW5aRzl1WnpFU01CQUdBMVVFQnd3SgpSM1ZoYm1kNmFHOTFN
UTB3Q3dZRFZRUUtEQVI2YUdOb01RMHdDd1lEVlFRTERBUjZhR05vTVJFd0R3WURWUVFECkRBaDZh
R05vTG14aGJqQWdGdzB5TXpFeU1URXdOakExTVRsYUdBOHlNVEl6TVRFeE56QTJNRFV4T1Zvd1pq
RUwKTUFrR0ExVUVCaE1DUTA0eEVqQVFCZ05WQkFnTUNVZDFZVzVuWkc5dVp6RVNNQkFHQTFVRUJ3
d0pSM1ZoYm1kNgphRzkxTVEwd0N3WURWUVFLREFSNmFHTm9NUTB3Q3dZRFZRUUxEQVI2YUdOb01S
RXdEd1lEVlFRRERBaDZ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