Let's look at some basic kubectl output options.
Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).
We can start with:
kubectl get no
| version: '2.1' | |
| services: | |
| transmission: | |
| container_name: transmission | |
| image: dperson/transmission | |
| restart: unless-stopped | |
| depends_on: | |
| - plex | |
| network_mode: host | |
| environment: |
| #!/bin/bash -x | |
| export nginx_version=1.9.9 | |
| # get latest rtmp mod | |
| mkdir /usr/local/src | |
| cd /usr/local/src | |
| git clone git://github.com/arut/nginx-rtmp-module.git | |
| # get nginx | |
| wget http://nginx.org/download/nginx-${nginx_version}.tar.gz |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Webcam</title> | |
| <style type="text/css"> | |
| body { | |
| text-align:center; | |
| background-color:#000000; | |
| color: #fff; | |
| } |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| ffmpeg -re -i rtmp://localhost/live/input_stream -acodec libfaac -ab 128k -vcodec libx264 -s 640x360 -b:v 500k -preset medium -vprofile baseline -r 25 -f flv rtmp://localhost/live/medium_500k -acodec libfaac -ab 128k -vcodec libx264 -s 480x272 -b:v 300k -preset medium -vprofile baseline -r 25 -f flv rtmp://localhost/live/medium_300k -acodec libfaac -ab 128k -c:v libx264 -s 320x200 -b:v 150k -preset:v fast -profile:v baseline -level 1.2 -r 25 -f flv rtmp://localhost/live/medium_150k -acodec libfaac -vn -ab 48k -f flv rtmp://localhost/live/audio_only |