k8s l2tp-server

# cat l2tp-server.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: l2tp-server-two
  namespace: operation
spec:
  progressDeadlineSeconds: 600
  replicas: 3
  revisionHistoryLimit: 5
  selector:
    matchLabels:
      app: l2tp-server-two
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: l2tp-server-two
    spec:
      containers:
      - env:
        - name: VPN_IPSEC_PSK
          value: jtvpnpsk
        - name: VPN_USER
          value: jtkjvpn
        - name: VPN_PASSWORD
          value: JtkjVPN123
        - name: VPN_DNS_SRV1
          value: 10.96.0.10
        - name: VPN_PUBLIC_IP
          value: 218.108.6.188
        image: docker.jintdev.com/containers/nginx/ipsec-vpn-server:latest
        imagePullPolicy: Always
        name: l2tp-server-two
        ports:
        - containerPort: 500
          protocol: UDP
        - containerPort: 4500
          protocol: UDP
        - containerPort: 1701
          protocol: UDP
        resources:
          limits:
            cpu: "4"
            memory: 800Mi
          requests:
            memory: 236Mi
        securityContext:
          privileged: true
          procMount: Default
      imagePullSecrets:
      - name: jintdev
      restartPolicy: Always
      schedulerName: default-scheduler
      terminationGracePeriodSeconds: 30

#  cat l2tp-service.yaml
apiVersion: v1
kind: Service
metadata:
  name: l2tp-service-two
  namespace: operation
spec:
  ports:
  - name: ike
    port: 500
    protocol: UDP
    targetPort: 500
  - name: ipsec
    port: 4500
    protocol: UDP
    targetPort: 4500
  - name: l2tp
    port: 1701
    protocol: UDP
    targetPort: 1701
  selector:
    app: l2tp-server-two
  type: LoadBalancer
status:
  loadBalancer:
    ingress:
    - ip: 172.16.100.222