apiVersion: v1 kind: Service metadata: name: ws-svc spec: selector: app: ws ports: - protocol: TCP port: 8080 targetPort: 8080 nodePort: 30005 type: NodePort --- apiVersion: apps/v1 kind: Deployment metadata: name: ws spec: replicas: 1 selector: matchLabels: app: ws template: metadata: labels: app: ws spec: containers: - name: ws image: oktopusp/ws:latest ports: - containerPort: 8080 resources: requests: memory: 64Mi cpu: 100m limits: memory: 256Mi cpu: 200m imagePullPolicy: IfNotPresent env: - name: SERVER_PORT value: ":8080" - name: SERVER_AUTH_TOKEN value: "" - name: SERVER_AUTH_ENABLE value: "false" - name: CONTROLLER_EID value: "oktopusController" - name: SERVER_TLS_ENABLE value: "false"