Skip to content

Instantly share code, notes, and snippets.

View ilanni2460's full-sized avatar

烂泥行天下 ilanni2460

View GitHub Profile
View Creating Nginx RPM Package with Status

Creating Nginx RPM Package with Status Modules

# - 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
ilanni2460 / mongo-statefulset.yaml
Created January 16, 2019 12:46 — forked from thilinapiy/mongo-statefulset.yaml
MongoDB statefulset for kubernetes with authentication and replication
View mongo-statefulset.yaml
## 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
name: mongo