Sha256: ce52ae023383bc7ab5987d6c8fcefcdbbc852678de1d59c6cfc1e7fb4b5ba099

Contents?: true

Size: 1.22 KB

Versions: 9

Compression:

Stored size: 1.22 KB

Contents

# ./kube/deployment.yml

apiVersion: apps/v1
kind: Deployment
metadata:
  name: <%= config[:main_app_name] %>-app-deployment
  labels:
    app: <%= config[:main_app_name] %>-app
    tier: app
spec:
  replicas: 2
  minReadySeconds: 5
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
  selector:
    matchLabels:
      app: <%= config[:main_app_name] %>-app
      tier: app
  template:
    metadata:
      labels:
        app: rubytags
        tier: app
    spec:
      imagePullSecrets:
        - name: docker-registry
      containers:
      - name: <%= config[:main_app_name] %>-app
        image: <%= config[:docker_org] %>/<%= config[:main_app_name] %>-app
        imagePullPolicy: Always
        ports:
        - containerPort: 3000
        env:
        - name: RAILS_LOG_TO_STDOUT
          value: 'true'
        - name: SECRET_KEY_BASE
          value: '$SECRET_KEY_BASE'
        - name: RAILS_ENV
          value: '$RAILS_ENV'
        - name: DATABASE_USERNAME
          value: '$DATABASE_USERNAME'
        - name: DATABASE_PASSWORD
          value: '$DATABASE_PASSWORD'
        - name: DATABASE_HOST
          value: '$DATABASE_HOST'
        - name: DATABASE_PORT
          value: '$DATABASE_PORT'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
roro-0.3.30 lib/roro/stacks/stories_v1/templates/rails/roro/kube/deployment.yml.tt
roro-0.3.28 lib/roro/stacks/stories_v1/templates/rails/roro/kube/deployment.yml.tt
roro-0.3.27 lib/roro/stacks/stories_v1/templates/rails/roro/kube/deployment.yml.tt
roro-0.3.25 lib/roro/stacks/stories_v1/templates/rails/roro/kube/deployment.yml.tt
roro-0.3.24 lib/roro/stacks/stories_v1/templates/rails/roro/kube/deployment.yml.tt
roro-0.3.23 lib/roro/stacks/stories_v1/templates/rails/roro/kube/deployment.yml.tt
roro-0.3.22 lib/roro/templates/rails/roro/kube/deployment.yml.tt
roro-0.3.21 lib/roro/templates/rails/roro/kube/deployment.yml.tt
roro-0.3.18 lib/roro/templates/rails/roro/kube/deployment.yml.tt