GET /USER/REPO/info/refs?service=git-upload-pack HTTP/1.1" 301
GET /git/USER/REPO/info/refs?service=git-upload-pack HTTP/1.1" 200
POST /git/USER/REPO/git-upload-pack HTTP/1.1" 200
GET /USER/REPO/info/refs?service=git-upload-pack HTTP/1.1" 301
GET /git/USER/REPO/info/refs?service=git-upload-pack HTTP/1.1" 200
POST /api/v3/repos/USER/REPO/statuses/1c99b9292c2bec3f31fa67456797b10ec8405ef5 HTTP/1.1" 401
POST /api/v3/repos/USER/REPO/statuses/1c99b9292c2bec3f31fa67456797b10ec8405ef5 HTTP/1.1" 401
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: kubernetes-dashboard-proxy | |
namespace: kube-system | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.11 | |
ARG VERSION | |
#TODO: add steps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkfifo /tmp/pipe; | |
(tee -a /var/log/kube-apiserver.log < /tmp/pipe & ) ; | |
exec /usr/local/bin/kube-apiserver | |
--allow-privileged=true | |
--anonymous-auth=false | |
--apiserver-count=1 | |
--authorization-mode=RBAC | |
--basic-auth-file=/srv/kubernetes/basic_auth.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create a ZIP/JAR file with given contents. | |
* | |
* @param destination destination file | |
* @param contents map of filename and content | |
*/ | |
void createZIP(File destination, Map<String, String> contents) { | |
destination.withOutputStream { | |
new ZipOutputStream(it).withStream { zip -> | |
contents.each { filename, content -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"io/ioutil" | |
"log" | |
"net/http" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Listen *:9090 | |
<VirtualHost *:9090> | |
ProxyRequests on | |
AddDefaultCharset off | |
AllowCONNECT 443 | |
<Proxy *> | |
Order deny,allow | |
Deny from all | |
</Proxy> | |
# allows HTTPS via CONNECT |
sudo systemctl stop docker-healthcheck.timer
sudo systemctl stop docker
sudo systemctl stop kubelet
sudo systemctl stop protokube
sudo systemctl --all
shows:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hudson.util.RemotingDiagnostics; | |
def node = 'node-name' | |
def command = 'uname -a' | |
println RemotingDiagnostics.executeGroovy(""" | |
def p = '$command'.execute() | |
p.waitFor() | |
println p.in.text |