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
# deploy the latest dashboard, v2-beta3 | |
$kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta3/aio/deploy/recommended.yaml | |
# for accessing it, you need to | |
$kubectl proxy | |
# now it is accessible via | |
http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/ | |
# NB! if you get default is not accessible error in dashboard, then create 'default' namespace with |
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
# prometheus-operator see -> https://github.com/coreos/prometheus-operator/ | |
``` | |
wget https://github.com/coreos/prometheus-operator/raw/master/bundle.yaml | |
mv bundle.yaml prometheus-operator-bundle.yaml | |
$kubectl apply -f prometheus-operator-bundle.yaml | |
``` | |
# metrics-server | |
``` | |
$ git clone https://github.com/kubernetes-incubator/metrics-server |
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
# install Helm, see https://helm.sh | |
# get the installer script | |
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > helm-install.sh | |
chmod u+x helm-install.sh | |
# IF you want to install latest 'stable' version | |
./helm-install.sh | |
# IF you want to install a specific version, f.eks. in-dev version |
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
image: traefik | |
imageTag: 1.7.12 | |
# NB! this creates DO's auto-assigned load balancer | |
serviceType: LoadBalancer | |
## NB! if you don't use LoadBalancer, uncomment this other alternative | |
#serviceType: NodePort | |
# floating-ip from DO which you assigned to k8s cluster | |
#externalIP: 123.123.123.123 |
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
//this cloud function listens to new records, | |
// then process them to create models aligned with App logic which is using Firestore. | |
function firestoreRecord_parkingnorway(dbRecord) { | |
let firestoreRecord = {}; | |
// this method creates a mapped version according to app logic | |
// etc etc etc .... | |
return firestoreRecord; |
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
/* | |
Requirements: | |
1) To be able to access your Firestore collections, you must have serviceAccountKey.json , | |
You can generate it | |
- via Firebase Project Overview -> Settings -> Service accounts | |
- Generate new private key, then download it as codementorship_serviceAccountKey.json file. | |
Put this file in the same folder as this script. | |
2) use this js file (firestore-export.js) as part of basic node.js project, | |
and with a simple package.json that contains the following deps |
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
resources: | |
JDBCSystemResource: | |
'opss-data-source': | |
Target: 'elhoam_cluster,AdminServer' | |
JdbcResource: | |
JDBCConnectionPoolParams: | |
MaxCapacity: 25 | |
ShrinkFrequencySeconds: 900 | |
MinCapacity: 2 |
OlderNewer