美文网首页
curl 添加证书验证

curl 添加证书验证

作者: peerben | 来源:发表于2021-02-14 20:55 被阅读0次

https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/

curl https://my-nginx --cacert /etc/nginx/ssl/tls.crt

kubectl exec curl-deployment-1515033274-1410r -- curl https://my-nginx --cacert /etc/nginx/ssl/tls.crt

apiVersion: apps/v1
kind: Deployment
metadata:
  name: curl-deployment
spec:
  selector:
    matchLabels:
      app: curlpod
  replicas: 1
  template:
    metadata:
      labels:
        app: curlpod
    spec:
      volumes:
      - name: secret-volume
        secret:
          secretName: nginxsecret
      containers:
      - name: curlpod
        command:
        - sh
        - -c
        - while true; do sleep 1; done
        image: radial/busyboxplus:curl
        volumeMounts:
        - mountPath: /etc/nginx/ssl
          name: secret-volume

相关文章

网友评论

      本文标题:curl 添加证书验证

      本文链接:https://www.haomeiwen.com/subject/kqkuxltx.html