您可以使用开发环境中的以下连接方法使用由自定义或自签名证书颁发机构签名的 SSL 证书,连接到私有托管 Git 服务器。但是,不建议在生产环境中使用这个步骤:
x509: certificate is valid for localhost.com, not localhost
x509: certificate is valid for localhost.com, not localhost
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
apiVersion: apps.open-cluster-management.io/v1
ind: Channel
metadata:
labels:
name: sample-channel
namespace: sample
spec:
type: GitHub
pathname: <Git HTTPS URL>
insecureSkipVerify: true
apiVersion: apps.open-cluster-management.io/v1
ind: Channel
metadata:
labels:
name: sample-channel
namespace: sample
spec:
type: GitHub
pathname: <Git HTTPS URL>
insecureSkipVerify: true
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow