这是需要作为字符串传递的证书。
-----BEGIN CERTIFICATE-----
MIICyTCCAbTCEF+F3G/7tLCJj9mZ/RiaPQEwDQYJKoZIhvcNAQELBQAwIzEhMB8G
A1UEAxMYc2FjLWh2bTAwODc5LnN3aW5mcmEubmV0MB4XDTE5MDkyMDEwMDk1NloX
DTQ0MDkxMzEwMDk1NlowIzEhMB8GA1UEAxMYc2FjLWh2bTAwODc5LnN3aW5mcmEu
bmV0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtmBCXjv7/8pjzUyq
O52/NAVgOpVAj+i4d1bMdFvfonUzZVzvTfmTxLoHVXAAYrivYq5Y9hpTVIxM0rWj
A5yMiXiO8Dx27v3eiacC5dqOCPD/KeARY0r6C3lL9+CPJYhtxiEDk7N+58GOaq1s
iPacwKxJurLH2FTr4xlau0UQj1DBZEc9yZJl4FDAayEVnqN8moAYqrVPPVrBfKW8
sKJSHZHaj8YEp46fzcymM2KeZytxw1ZzSoOYiwiSSNwivC19DINx0b4DEvvGwL/Y
nJtTPQRcJ3oB83Zv7vQPFWDvj63lXQ87R3LXRF3xxy42ebXmcRP4I+edGYnjGa73
vAZh2wIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQB2SOa8ZHRoP7V6bzA6FSc032Rw
Hpf4IiHNfkENorcNvA/rpkVdV9V9TceNlQi1KWSH/4Ty+LhdbHdoqWYivfc47Xj0
ZReq5v/2j3RNmxDRBf4ugAFqFnhzvZn8lt4J/C3kcevPqcsK/1UHtUBiFi1Y2nka
AsomYfH3AEgGYax8YGSdF0LW0USEeXZiaMf+Z5+N43d8BoCdGOkPZZQEIMaQwnxM
ouLisTV113x0vzHZR7b1JzZyMF5zYw88Lsul+TEOfkpY0zjmoptFM26pYSkx8J87
n0aTe1ZN7TFDZ3zu629BHYfcwvy2F/m0E6rnFRa7o4o6qXJSfZIe1kqqvbRc
-----END CERTIFICATE-----
掌舵图中的变量是
global:
dbvalues:
dbcacertificate:
答案 0 :(得分:2)
我找到了一种通过有效证书的方法。
global:
dbvalues:
dbcacertificate: |
-----BEGIN CERTIFICATE-----
MIICyTCCAbTCEF+F3G/7tLCJj9mZ/RiaPQEwDQYJKoZIhvcNAQELBQAwIzEhMB8G
A1UEAxMYc2FjLWh2bTAwODc5LnN3aW5mcmEubmV0MB4XDTE5MDkyMDEwMDk1NloX
DTQ0MDkxMzEwMDk1NlowIzEhMB8GA1UEAxMYc2FjLWh2bTAwODc5LnN3aW5mcmEu
bmV0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtmBCXjv7/8pjzUyq
O52/NAVgOpVAj+i4d1bMdFvfonUzZVzvTfmTxLoHVXAAYrivYq5Y9hpTVIxM0rWj
A5yMiXiO8Dx27v3eiacC5dqOCPD/KeARY0r6C3lL9+CPJYhtxiEDk7N+58GOaq1s
iPacwKxJurLH2FTr4xlau0UQj1DBZEc9yZJl4FDAayEVnqN8moAYqrVPPVrBfKW8
sKJSHZHaj8YEp46fzcymM2KeZytxw1ZzSoOYiwiSSNwivC19DINx0b4DEvvGwL/Y
nJtTPQRcJ3oB83Zv7vQPFWDvj63lXQ87R3LXRF3xxy42ebXmcRP4I+edGYnjGa73
vAZh2wIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQB2SOa8ZHRoP7V6bzA6FSc032Rw
Hpf4IiHNfkENorcNvA/rpkVdV9V9TceNlQi1KWSH/4Ty+LhdbHdoqWYivfc47Xj0
ZReq5v/2j3RNmxDRBf4ugAFqFnhzvZn8lt4J/C3kcevPqcsK/1UHtUBiFi1Y2nka
AsomYfH3AEgGYax8YGSdF0LW0USEeXZiaMf+Z5+N43d8BoCdGOkPZZQEIMaQwnxM
ouLisTV113x0vzHZR7b1JzZyMF5zYw88Lsul+TEOfkpY0zjmoptFM26pYSkx8J87
n0aTe1ZN7TFDZ3zu629BHYfcwvy2F/m0E6rnFRa7o4o6qXJSfZIe1kqqvbRc
-----END CERTIFICATE-----
答案 1 :(得分:0)
您可以将证书存储在config map
或secret
中,然后进一步传递。
您可以创建secret
并在其中存储值并将其用作env变量,否则可以将值保存在values.yaml
中并指向舵图。
答案 2 :(得分:0)
我针对此问题的解决方案是对值进行base64编码,然后在图表中对其进行解码。