github.com/metaworking/channeld@v0.7.3/k8s/testing/channeld.yaml (about) 1 apiVersion: v1 2 kind: Service 3 metadata: 4 namespace: channeld 5 labels: 6 io.kompose.service: chat 7 name: chat 8 spec: 9 ports: 10 - name: "web" 11 port: 8080 12 targetPort: 8080 13 - name: "client-ws" 14 port: 12108 15 targetPort: 12108 16 selector: 17 io.kompose.service: chat 18 type: LoadBalancer 19 --- 20 apiVersion: apps/v1 21 kind: Deployment 22 metadata: 23 namespace: channeld 24 labels: 25 io.kompose.service: chat 26 name: chat 27 spec: 28 replicas: 1 29 selector: 30 matchLabels: 31 io.kompose.service: chat 32 strategy: 33 type: Recreate 34 template: 35 metadata: 36 labels: 37 io.kompose.service: chat 38 spec: 39 containers: 40 - command: 41 - ./app 42 - -ct=0 43 - -chs=../../config/channel_settings_lofi.json 44 image: channeld/chat:v0.2.0 45 name: chat 46 ports: 47 - containerPort: 8080 48 - containerPort: 12108 49 resources: 50 limits: 51 cpu: 3500m 52 requests: 53 cpu: "2" 54 restartPolicy: Always