stuff i do
play

Stuff I do Follow me! https://pasztor.at @janoszen About this - PowerPoint PPT Presentation

Stuff I do Follow me! https://pasztor.at @janoszen About this talk 1. Maintaining your Build Stack 2. Orchestrating your Cluster 3. Pitfalls and Recommendations About this talk 1. Maintaining your Build Stack 2. Orchestrating your Cluster


  1. Pitfalls and Recommendations SIGKILL! bash -c /init.sh nginx

  2. Pitfalls and Recommendations #!/bin/bash # Other stuff here exec /usr/sbin/nginx -g "daemon off;"

  3. Pitfalls and Recommendations bash -c /init.sh

  4. Pitfalls and Recommendations nginx

  5. Pitfalls and Recommendations Don’t update your containers!

  6. Pitfalls and Recommendations Shared data?

  7. Pitfalls and Recommendations Container Server

  8. Pitfalls and Recommendations /srv/mysql Container bind mount Server

  9. Pitfalls and Recommendations /srv/mysql Container Server Server

  10. Pitfalls and Recommendations Healthchecks?

  11. Pitfalls and Recommendations Dockerfile: healthcheck: HEALTHCHECK \ #!/bin/bash --interval=10s \ --timeout=3s \ test $(SCRIPT_NAME=/status CMD /usr/local/bin/healthcheck SCRIPT_FILENAME=/status REQUEST_METHOD=GET cgi-fcgi -bind -connect 127.0.0.1:9000 | grep pool | cut -d: -f2 | sed 's/ //g') == www || exit 1

  12. Pitfalls and Recommendations healthcheck: #!/bin/bash test $(SCRIPT_NAME=/status SCRIPT_FILENAME=/status REQUEST_METHOD=GET cgi-fcgi -bind -connect 127.0.0.1:9000 | grep pool | cut -d: -f2 | sed 's/ //g') == www || exit 1

  13. Pitfalls and Recommendations Docker Swarm: HEALTHCHECK \ --interval=10s \ --timeout=3s \ CMD /usr/local/bin/healthcheck

  14. Pitfalls and Recommendations Kubernetes: spec: containers: - name: yourpod livenessProbe: exec: command: - /usr/local/bin/healthcheck initialDelaySeconds: 5 periodSeconds: 5 readinessProbe: ....

  15. Pitfalls and Recommendations TEST YO’ CONTAINERS!

Recommend


More recommend