System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
| package main | |
| // http://play.golang.org/p/jZ5pa944O1 <- will not display the colors | |
| import "fmt" | |
| const ( | |
| InfoColor = "\033[1;34m%s\033[0m" | |
| NoticeColor = "\033[1;36m%s\033[0m" | |
| WarningColor = "\033[1;33m%s\033[0m" | |
| ErrorColor = "\033[1;31m%s\033[0m" | |
| DebugColor = "\033[0;36m%s\033[0m" |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
| #!/bin/bash | |
| export MINIKUBE_VER=v1.0.0 | |
| export KUBECTL_VER=`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt` | |
| show_help() { | |
| echo "mk-kc.sh - update minikube and kubectl" | |
| echo " " | |
| echo "mk-kc.sh [options]" | |
| echo " " |
| #!/bin/bash | |
| set -eou pipefail | |
| export VERSION=14 | |
| export ARGS=0 | |
| export FILE= | |
| show_help() { | |
| echo "c++14 - builds and runs a c++ source file specified by the only argument" | |
| echo " " |
https://stackoverflow.com/questions/48993286/is-it-possible-to-route-traffic-to-a-specific-pod?rq=1
You can guarantee session affinity with services, but not as you are describing. So, your customers 1-1000 won't use pod-1, but they will use all the pods (as a service makes a simple load balancing), but each customer, when gets back to hit your service, will be redirected to the same pod.
Note: always within time specified in (default 10800):
| #!/bin/bash | |
| ETCD_VERSION=${ETCD_VERSION:-v3.3.1} | |
| curl -L https://github.com/coreos/etcd/releases/download/$ETCD_VERSION/etcd-$ETCD_VERSION-linux-amd64.tar.gz -o etcd-$ETCD_VERSION-linux-amd64.tar.gz | |
| tar xzvf etcd-$ETCD_VERSION-linux-amd64.tar.gz | |
| rm etcd-$ETCD_VERSION-linux-amd64.tar.gz | |
| cd etcd-$ETCD_VERSION-linux-amd64 |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
| USE sys; | |
| DELIMITER $$ | |
| CREATE FUNCTION IFZERO(a INT, b INT) | |
| RETURNS INT | |
| DETERMINISTIC | |
| RETURN IF(a = 0, b, a)$$ | |
| CREATE FUNCTION LOCATE2(needle TEXT(10000), haystack TEXT(10000), offset INT) |
| # The command finds the most recent tag that is reachable from a commit. | |
| # If the tag points to the commit, then only the tag is shown. | |
| # Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
| # and the abbreviated object name of the most recent commit. | |
| git describe | |
| # With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
| git describe --abbrev=0 | |
| # other examples |