Skip to content

Instantly share code, notes, and snippets.

View NaverCloudPlatformDeveloper's full-sized avatar

Naver Cloud Platform NaverCloudPlatformDeveloper

View GitHub Profile
apiVersion: apps/v1
kind: Deployment
metadata:
name: a
spec:
replicas: 1
selector:
matchLabels:
app: a
template:
@NaverCloudPlatformDeveloper
NaverCloudPlatformDeveloper / nks-tutorial-wordpress.yaml
Last active August 2, 2019 05:29
nks-tutorial-wordpress.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: wordpress
labels:
app: wordpress
spec:
selector:
matchLabels:
app: wordpress
kind: PersistentVolume
apiVersion: v1
metadata:
name: mysql-pv
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 10Gi
@NaverCloudPlatformDeveloper
NaverCloudPlatformDeveloper / mongodb_quick_install.sh
Last active January 25, 2019 02:22
Quick Guide Sample Script
#!/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
@NaverCloudPlatformDeveloper
NaverCloudPlatformDeveloper / mongodb_install.sh
Created November 23, 2018 01:54
mongodb_install.sh init-script file for Naver Cloud Platform
#!/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