apiVersion: v1 kind: Service metadata: name: tor spec: ipFamilyPolicy: PreferDualStack type: NodePort selector: name: tor ports: - protocol: TCP port: 9001 targetPort: or nodePort: 31733 name: or - protocol: TCP port: 9030 targetPort: pt nodePort: 31734 name: pt