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 | |
#os check | |
check_os=`sudo cat /etc/os-release | head -n 1 | awk -F"[\"]" '{print $2}'` | |
if [ "$check_os" == "CentOS Linux" ]; then | |
os_version='rhel70' | |
else | |
os_version='ubuntu1604' | |
fi |
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 | |
#============================================================================================ | |
# mongo config | |
mongo_version='4.0.3' | |
mongos_port=60000 | |
mongo_path='/home/mongodb' | |
# replica set config | |
# role='mongos' : mongos, config, arbiter servers |
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: PersistentVolume | |
apiVersion: v1 | |
metadata: | |
name: mysql-pv | |
labels: | |
type: local | |
spec: | |
storageClassName: manual | |
capacity: | |
storage: 10Gi |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: wordpress | |
labels: | |
app: wordpress | |
spec: | |
selector: | |
matchLabels: | |
app: wordpress |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: a | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: a | |
template: |
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: ab-ingress | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
ingress.kubernetes.io/rewrite-target: / | |
nginx.ingress.kubernetes.io/ssl-redirect: "false" | |
spec: | |
rules: |
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: ab-host-ingress | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
ingress.kubernetes.io/rewrite-target: / | |
spec: | |
rules: | |
- host: a.svc.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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: alb-ingress-controller | |
namespace: kube-system | |
labels: | |
app.kubernetes.io/name: alb-ingress-controller | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 |
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: v1 | |
kind: ServiceAccount | |
metadata: | |
name: alb-ingress-controller | |
namespace: kube-system | |
labels: | |
app.kubernetes.io/name: alb-ingress-controller | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 |
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: v1 | |
kind: Service | |
metadata: | |
name: naver | |
spec: | |
type: NodePort | |
selector: | |
app: naver | |
ports: | |
- port: 80 |
OlderNewer