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
http.createServer(function (request, response) { | |
// Send the HTTP header | |
// HTTP Status: 200 : OK | |
// Content Type: text/plain | |
response.writeHead(200, {'Content-Type': 'text/plain'}); | |
// Send the response body as "Hello World" | |
response.end('Hello World\n'); | |
}).listen(8081); |
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 | |
DIGITALOCEAN_TOKEN='' | |
VOLUME_ID='' | |
SNAPSHOT_NAME='' | |
DATE=`date '+%Y%m%d-%H%M%S'` | |
curl -X POST \ | |
"https://api.digitalocean.com/v2/volumes/$VOLUME_ID/snapshots" \ |
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: redis | |
spec: | |
ports: | |
- port: 6379 | |
name: redis | |
clusterIP: None | |
selector: |
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
Table of content | |
| Statefulsets | Image version | PVC mountpath | | |
| ------------- |:-------------:| -----:| | |
| Elasticsearch | elasticsearch:6.5.0 | /usr/share/elasticsearch/data | | |
| Graylog | graylog/graylog:3.0.1 | /usr/share/graylog/data/journal | | |
| MongoDB | mongo:3 | /data/db | |
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: certmanager.k8s.io/v1alpha1 | |
kind: ClusterIssuer | |
metadata: | |
name: sonarqube | |
spec: | |
acme: | |
server: https://acme-v02.api.letsencrypt.org/directory | |
email: [email protected] | |
privateKeySecretRef: | |
name: sonarqube |
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
# Default values for Kong's Helm Chart. | |
# Declare variables to be passed into your templates. | |
# | |
# Sections: | |
# - Kong parameters | |
# - Ingress Controller parameters | |
# - Postgres sub-chart parameters | |
# - Miscellaneous parameters | |
# - Kong Enterprise parameters |
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
# Default values for Kong's Helm Chart. | |
# Declare variables to be passed into your templates. | |
# | |
# Sections: | |
# - Kong parameters | |
# - Ingress Controller parameters | |
# - Postgres sub-chart parameters | |
# - Miscellaneous parameters | |
# - Kong Enterprise parameters |
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/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: wordpress-site | |
name: wordpress-site | |
namespace: development | |
spec: | |
progressDeadlineSeconds: 600 | |
replicas: 1 |
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: keycloak | |
labels: | |
app: keycloak | |
spec: | |
ports: | |
- name: http | |
port: 8080 |
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/sh | |
# nginx install from source shell | |
echo "\033[32m-nginx-> cUrling nginx v1.10.3 into current directory.\033[0m" | |
curl -O http://nginx.org/download/nginx-1.10.3.tar.gz | |
echo "\033[32m-nginx-> nginx tar downloaded, unarchiving...\033[0m" | |
tar -zxf nginx-1.10.3.tar.gz | |
cd nginx-1.10.3 | |
echo "\033[32m-nginx-> ./configure\033[0m" | |
./configure |
OlderNewer