Download CMake from: https://cmake.org/download/
wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz
tar zxvf cmake-3.*
| https://github.com/kubernetes-sigs/kind/issues/1200#issuecomment-1304855791 | |
| For those interested I think I came with a simpler solution to route network to the host machine, using headless or ExternalName services. The solution is different for Linux and Mac/Window (the latter using Docker desktop). | |
| Linux solution: headless service + endpoint: | |
| --- | |
| apiVersion: v1 | |
| kind: Endpoints | |
| metadata: |
| import http.server | |
| import http.cookiejar | |
| import io | |
| import socket | |
| from http import HTTPStatus | |
| import ssl | |
| import os | |
| import zlib | |
| server_address = ('0.0.0.0', 4443) |
| #!/usr/bin/python | |
| from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
| from urlparse import urlparse, parse_qs | |
| global_store = {} | |
| class KeyServerHandler(BaseHTTPRequestHandler): | |
| def get_request(self, query_components): | |
| if "key" in query_components: |
| #!flask/bin/python | |
| from flask import Flask, jsonify, abort, request, make_response, url_for | |
| from flask_httpauth import HTTPBasicAuth | |
| app = Flask(__name__, static_url_path = "") | |
| auth = HTTPBasicAuth() | |
| @auth.get_password | |
| def get_password(username): | |
| if username == 'miguel': |
| ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa |
| package main | |
| import ( | |
| "flag" | |
| "io" | |
| "log" | |
| "net" | |
| "net/http" | |
| "strings" | |
| ) |
| #!/usr/bin/python | |
| # This is a simple port-forward / proxy, written using only the default python | |
| # library. If you want to make a suggestion or fix something you can contact-me | |
| # at voorloop_at_gmail.com | |
| # Distributed over IDC(I Don't Care) license | |
| import socket | |
| import select | |
| import time | |
| import sys |
| import socket | |
| from BaseHTTPServer import HTTPServer | |
| from SimpleHTTPServer import SimpleHTTPRequestHandler | |
| class MyHandler(SimpleHTTPRequestHandler): | |
| def do_GET(self): | |
| if self.path == '/ip': | |
| self.send_response(200) | |
| self.send_header('Content-type', 'text/html') | |
| self.end_headers() |
wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz
tar zxvf cmake-3.*
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Upload File using jQuery.ajax() with progress support</title> | |
| </head> | |
| <body> | |
| <input type="file" name="file" id="sel-file"/> |