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
# simple copy | |
rsync -axHAWXS /data/a/ /data/b/ | |
# simple copy showing progress in terminal | |
rsync -axHAWXS --numeric-ids --info=progress2 /data/a/ /data/b/ | |
# show copy stats at the end | |
rsync -axHAWXS --stats /data/a/ /data/b/ | |
# copy folder excluding the "lost+found" directory |
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
#Traefik Global Configuration | |
debug = false | |
checkNewVersion = false | |
logLevel = "INFO" | |
#Define the EntryPoint for HTTP and HTTPS | |
defaultEntryPoints = ["https", "http"] | |
#Define the HTTP port 80 and |
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
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: testsvc | |
spec: | |
selector: | |
app: test | |
ports: | |
- protocol: TCP | |
port: 8001 |
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: Ingress | |
metadata: | |
name: test-ingress | |
annotations: | |
kubernetes.io/ingress.class: "traefik" | |
traefik.ingress.kubernetes.io/rule-type: PathPrefixStrip | |
spec: | |
rules: | |
- host: example.com |
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
#!/bin/bash | |
cmd=$@ | |
command="echo $cmd | sudo socat stdio /run/haproxy/admin.sock" | |
ssh -o StrictHostKeyChecking=no haproxy $command |
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
single-master | masters x 1 | workers x 3 | haproxy x 0 | |
---|---|---|---|---|
cpu | 2 | 2 | 1 | |
memory | 4G | 4G | 2G | |
storage | 80G | 80G | 50G |
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
highly available | masters x 3 | workers x 3 | haproxy x 2 | |
---|---|---|---|---|
cpu | 2 | 2 | 1 | |
memory | 4G | 4G | 2G | |
storage | 80G | 80G | 50G |
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
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: testsvc | |
spec: | |
selector: | |
app: test | |
ports: | |
- protocol: TCP | |
port: 8001 |
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
# copy secret | |
kubectl get secret gitlab-registry --namespace=revsys-com --export -o yaml |\ | |
kubectl apply --namespace=devspectrum-dev -f - | |
# modify configmap | |
kubectl create configmap foo --from-file foo.properties -o yaml --dry-run | kubectl replace -f - |
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
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: testsvc | |
spec: | |
selector: | |
app: test | |
ports: | |
- protocol: TCP | |
port: 8001 |
OlderNewer