Thanks to visit codestin.com
Credit goes to github.com

Skip to content

wangjun1974/demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##1, rolling update

  • oc new-app openshift/php:5.6~https://github.com/cdan/ab-deploy.git -l abdeploy=true --name=myappv1

  • oc edit dc myappv1 (intervalSeconds: 2) add readiness probe under imagePullPolicy

              readinessProbe:    
                failureThreshold: 3  
                httpGet:  
                  path: /  
                  port: 8080  
                  scheme: HTTP  
                periodSeconds: 5  
                successThreshold: 1  
                timeoutSeconds: 1  
    
  • oc scale --replicas=6 dc myappv1

  • oc expose service/myappv1 --hostname=rolling.apps.example.com

  • while true; do curl http://rolling.apps.example.com/; sleep 1; done;

  • modify https://github.com/cdan/ab-deploy.git

  • oc start-build myappv1

  • no http failure during update.

##2, ab testing

##3, blue green deployment

About

openshift demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •