0

我可以在哪里添加socksParentProxyKubernetes 部署文件以与 tor 通信 polipo。我已经创建了 tor 服务tor:9150和 tor 部署。这是我的 YAML 文件:

apiVersion: apps/v1beta1 
kind: Deployment
metadata:
    name: polipo-deployment
    labels: 
        app: myauto
spec:
    selector:
        matchLabels:
          name: polipo-pod
          app: myauto
    template:
        metadata:
            name: polipo-deployment
            labels:
                name: polipo-pod
                app: myauto
        spec:
           containers:
              - env:
                    - name: socksParentProxy
                      value: tor:9150
                name: polipo
                image: 'clue/polipo'
                ports: 
                  - containerPort: 8123  
    replicas: 1

4

1 回答 1

0

文档中所述,您应该使用args

containers:
    name: polipo
    image: 'clue/polipo'
    args: ["socksParentProxy=tor:9150"]
    ports: 
        - containerPort: 8123
于 2019-05-13T08:28:58.723 回答