# - Dependencies
yum -y install gcc gcc-c++ make zlib-devel pcre-devel openssl-devel geoip-devel rpm-build
# - Creating user to perform this process, as the same is not recommended with root user:
useradd -m rpmbuilder
| # 21 世纪最伟大的发明是什么,那必然是 AI | |
| # 所以如果你遇到什么问题,也许问 AI 比问人更快哦 | |
| # AFF | |
| # 如果你想支持我,可以通过我的邀请链接购买机场 | |
| # 感谢支持 | |
| # 1. ssLinks 邀请码: fSo2OhzH https://98a6251b6cd7471da86cca993b6dbe6f.36d.biz/#/register?code=fSo2OhzH | |
| # 2. 一元机场 邀请码: r3f1duds https://xn--4gq62f52gdss.top/#/register?code=r3f1duds | |
| # 一定要填我的邀请码,不填我哭给你看😭 |
| SQL Server 2017 | |
| ---------------- | |
| Enterprise Core - 6GPYM-VHN83-PHDM2-Q9T2R-KBV83 | |
| Developer - 22222-00000-00000-00000-00000 | |
| Enterprise - TDKQD-PKV44-PJT4N-TCJG2-3YJ6B | |
| Standard - PHDV4-3VJWD-N7JVP-FGPKY-XBV89 | |
| Web - WV79P-7K6YG-T7QFN-M3WHF-37BXC | |
| https://www.teamos-hkrg.com/index.php?threads/microsoft-sql-server-english-2017-rtm-teamos.42103/ |
| context=$1 #後端K8S Cluster的名稱 | |
| kubectl apply -f ./sa-admin.yaml # 執行 | |
| name=$(kubectl describe sa gimbal-sa --context=$context | grep Tokens | awk '{print $2}') | |
| ca=$(kubectl get secret/$name -o jsonpath='{.data.ca\.crt}' --context=$context) | |
| token=$(kubectl get secret/$name -o jsonpath='{.data.token}' --context=$context | base64 --decode) | |
| namespace=$(kubectl get secret/$name -o jsonpath='{.data.namespace}' --context=$context | base64 --decode) | |
| echo " | |
| apiVersion: v1 |
| ## Generate a key | |
| # openssl rand -base64 741 > mongodb-keyfile | |
| ## Create k8s secrets | |
| # kubectl create secret generic mongo-key --from-file=mongodb-keyfile | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: mongo | |
| labels: |
| [defaults] | |
| sudo_flags = SSH_AUTH_SOCK="$SSH_AUTH_SOCK" -H -S -n | |
| [ssh_connection] | |
| ssh_args=-o ForwardAgent=yes |