Share
Embed
Continuous Delivery to Kubernetes
DEPLOYMENT INTERFACES - DevOps Pro Europe 2019 (Vilnius) 2019-03-20 - prepared backup talk - not held
Lothar Schulz
March 20, 2019
Transcript
25 slides
-
Docker image journey – How to shrink a docker image
| Engineering | Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Continuous Delivery to Kubernetes Deployment Interfaces DevOps Pro Europe 2019 2019-03-20 pic: © Moovel Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering | Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz -
pic: © Moovel Continuous Delivery to Kubernetes - Deployment Interfaces
| Engineering | Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Engineering Manager github.com/lotharschulz @lothar_schulz lotharschulz.info speakerdeck.com/lothar Me -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Starting Point CI / CD -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Deployment Format -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Deployment descriptor & Repository integration ghe-backup-deploy $ filetree README.md delivery.yaml deploy | - deploy apply | --- apply kube|secret.yaml statefulset.yaml -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Dependency $ cat Dockerfile # “latest” will be used when --build-arg is omitted ARG BASE_IMAGE_VERSION=latest FROM registry/stups/python ${BASE_IMAGE_VERSION} -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz SCM integration -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Trigger -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Compliance In general, compliance means conforming to a rule, such as a specification, policy, standard or law. https://en.wikipedia.org/wiki/Regulatory_compliance -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Tests $ cat delivery.yaml version: "2017-09-20" ..... - desc: "run tests" cmd: | nosetests -w python -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Credentials $ cat delivery.yaml version: "2017-09-20" - desc: "build and push docker images" cmd: | PIERONE_NAMESPACE=pierone.stups.zalan.do/machinery BASE_IMAGE=$PIERONE_NAMESPACE/ghe-backup IMAGE=$BASE_IMAGE:cdp-${CDP_BUILD_VERSION} CACHE_IMAGE=$BASE_IMAGE:latest docker build --cache-from $CACHE_IMAGE -t $CACHE_IMAGE -t $IMAGE -f Dockerfile . if [ -z "$CDP_PULL_REQUEST_NUMBER" ]; then docker push $IMAGE echo "$IMAGE pushed" else ... fi -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Credentials & Setup https://speakerdeck.com/lothar/cd-at-zalando -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Credentials & Setup -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Git Branches & Pull Requests Builds -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Git Branches & Pull Requests Builds Poll PR until mergeable is true https://developer.github.com/v3/pulls/#response-1 https://developer.github.com/v3/git/#checking-mergeability-of-pull-requests -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Git Branches & Pull Requests Builds reference is not a tree reference ? -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Git Branches & Pull Requests Builds commits without reference can’t be accessed https://developer.github.com/v3/git/refs/#create-a-reference -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Git Branches & Pull Requests Builds merge A & B in worker VMs/nodes -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Hands off operations $ zkubectl get po | grep cdp-controller cdp-controller-7985fd799f-4jpbz cdp-controller-7985fd799f-rgpf8 -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz polling must die Don’t call us, we notify you. -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz object store AWS S3 control access via IAM roles provision roles in AWS accounts change request cache control headers -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Support -
Continuous Delivery to Kubernetes - Deployment Interfaces | Engineering |
Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz Culture -
Docker image journey – How to shrink a docker image
| Engineering | Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz https://www.flickr.com/photos/eyecatcherfotosde/25418973420/ - build https://github.com/zalando/ghe-backup - delivery.yaml - deploy to k8s with Github Enterprise feedback - delivery.yaml - (init Container) I’m sure you have questions lotharschulz.info pic: https://www.flickr.com/photos/eyecatcherfotosde/25397937985 Docker image journey – How to shrink a docker image | Engineering | Lothar Schulz | 2019-03-20 Slido.com #devops2019 | @lothar_schulz