Код

Код


apiVersion: apps/v1

kind: Deployment

metadata:

 name: werf-first-app

spec:

 replicas: 1

 selector:

  matchLabels:

   app: werf-first-app

 template:

  metadata:

   labels:

    app: werf-first-app

  spec:

   imagePullSecrets:

   - name: registrysecret

   containers:

   - name: backend

    image: {{ .Values.werf.image.backend }}

    command: ["node", "./bin/www"]

    ports:

    - containerPort: 3000

    env:

    - name: NODE_ENV

     value: production

   - name: frontend

    image: {{ .Values.werf.image.frontend }}

    ports:

    - containerPort: 80

Report Page