OpenShift DeploymentConfig Definition

From NovaOrdis Knowledge Base
Revision as of 00:29, 12 May 2017 by Ovidiu (talk | contribs) (Created page with "=Internal= * OpenShift Concepts =Example= <pre> apiVersion: v1 kind: DeploymentConfig metadata: name: frontend spec: replicas: 5...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Example

apiVersion: v1
kind: DeploymentConfig
metadata:
  name: frontend
spec:
  replicas: 5
  selector:
    name: frontend
  template: { ... }
  triggers:
  - type: ConfigChange 
  - imageChangeParams:
      automatic: true
      containerNames:
      - helloworld
      from:
        kind: ImageStreamTag
        name: hello-openshift:latest
    type: ImageChange  
  strategy:
    type: Rolling