apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: test-infra-proxy
  name: test-infra-proxy-deployment
  namespace: test-infra
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: test-infra-proxy
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: test-infra-proxy
    spec:
      containers:
      - image: xkuma/socks5
        imagePullPolicy: Always
        name: socks5
        ports:
        - containerPort: 1080
          protocol: TCP
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: test-infra-proxy
  name: test-infra-proxy-service
  namespace: test-infra
spec:
  ports:
  - nodePort: 30081
    port: 1080
    protocol: TCP
    targetPort: 1080
  selector:
    app: test-infra-proxy
  type: NodePort
