Enable kubectl
completion (needs the bash-completion
package):
source <(kubectl completion bash)
Dry-run, outputs Service (--expose) and a Deployment in yaml:
kubectl run --image=apache \
--port=80 \
Intro: | |
I'm Bryce (/u/bboe) Author of PRAW | |
/u/busterroni's Submission: | |
https://www.reddit.com/r/learnpython/comments/5ury27/heres_a_tutorial_i_made_on_creating_a_reddit_bot/ | |
/u/busterroni's Part 1: | |
https://www.youtube.com/watch?v=krTUf7BpTc0 | |
- name: wait_for http | |
command: "curl --silent {{ url }}" | |
register: result | |
until: result.stdout.find("200 OK") != -1 | |
retries: 60 | |
delay: 1 | |
changed_when: false |
ansible-playbook --connection=local 127.0.0.1 playbook.yml
127.0.0.1 ansible_connection=local
- name: Ensure .ssh directory exists. | |
file: dest={{ key_file | dirname }} mode=700 owner=ansible state=directory | |
- name: Install ssh key | |
copy: content="{{ ssh_key }}" dest={{ key_file }} mode=600 owner=ansible | |
By default when Nginx starts receiving a response from a FastCGI backend (such as PHP-FPM) it will buffer the response in memory before delivering it to the client. Any response larger than the set buffer size is saved to a temporary file on disk.
This process is outlined at the Nginx ngx_http_fastcgi_module page manual page.