Request
echo -e "GET /version HTTP/1.0\r\n" | nc -U /var/run/docker.sock
Response
HTTP/1.0 200 OK
| #!/bin/bash | |
| for POD in $(kubectl get pods --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}') | |
| do | |
| kubectl exec -it ${POD} -- ps aux | |
| done | 
| kubectl scale deployment.apps/coredns -n kube-system --replicas=0 | |
| kubectl scale deployment.apps/coredns -n kube-system --replicas=2 | 
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| labels: | |
| k8s-app: kube-dns-autoscaler | |
| kubernetes.io/cluster-service: "true" | |
| name: kube-dns-autoscaler | |
| namespace: kube-system | |
| spec: | |
| progressDeadlineSeconds: 600 | 
| --- | |
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: external-dns | |
| --- | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: external-dns | 
| apiVersion: eksctl.io/v1alpha5 | |
| kind: ClusterConfig | |
| metadata: | |
| name: k8s-pink | |
| region: us-west-2 | |
| version: "1.17" | |
| vpc: | |
| id: "vpc-12345678" | 
Request
echo -e "GET /version HTTP/1.0\r\n" | nc -U /var/run/docker.sock
Response
HTTP/1.0 200 OK
| [1,2,3,4].map(n => n + 1); | 
| #!/bin/sh | |
| PROPERTY_FILE=apps.properties | |
| function getProperty { | |
| PROP_KEY=$1 | |
| PROP_VALUE=`cat $PROPERTY_FILE | grep "$PROP_KEY" | cut -d'=' -f2` | |
| echo $PROP_VALUE | |
| } | 
| docker run --publish=8080:8080 mbirkner/docker-jenkins-job-dsl | 
| #!/bin/sh | |
| # | |
| # This script adds 2 spring repositories to Nexus using curl | |
| # | |
| NEXUS_URL="http://${EVENTDRIVENMICROSERVICESPLATFORM_NEXUS_1_PORT_8081_TCP_ADDR}:${EVENTDRIVENMICROSERVICESPLATFORM_NEXUS_1_PORT_8081_TCP_PORT}/nexus" | |
| POST_REPO_SERVICE="/service/local/repositories" | |
| GET_REPO_SERVICE="/service/local/repositories" | |
| PUT_PUBLIC_REPO_SERVICE="/service/local/repo_groups/public" |