- GKE with Google-managed SSL certificates
- Use ManagedCertificate CRD to create a object.
- Associate the ManagedCertificate object to an Ingress by adding an annotation networking.gke.io/managed-certificates to the Ingress. This annotation is a comma-separated list of ManagedCertificate resources, cert1,cert2,cert3 for example.
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 query will look at a single project (by default in US multi-region) and | |
* calculate the logical and physical billing prices for each table in all datasets | |
* contained inside of it then provide a recommendation on if it is better to put it | |
* into a dataset that uses the logical (uncompressed) or physical (compressed) | |
* storage billing models. | |
* | |
* Physical (also called compressed) Storage went GA on July 5, 2023. It is set at | |
* the dataset level, so if two or more tables are better suited for different | |
* billing models in the same dataset it may be best to split them into separate |
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
def checkout () { | |
context="continuous-integration/jenkins/" | |
context += isPRMergeBuild()?"pr-merge/checkout":"branch/checkout" | |
def scmVars = checkout scm | |
setBuildStatus ("${context}", 'Checking out completed', 'SUCCESS') | |
if (isPRMergeBuild()) { | |
prMergeRef = "refs/pull/${getPRNumber()}/merge" | |
mergeCommit=sh(returnStdout: true, script: "git show-ref ${prMergeRef} | cut -f 1 -d' '") | |
echo "Merge commit: ${mergeCommit}" | |
return [prMergeRef, mergeCommit] |
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
/** | |
* JENKINS_HOST/job/pipeline-job/pipeline-syntax/gdsl | |
* https://gist.github.com/Mr-LiuDC/8a1fbe27e8fbd42361185b06085ef4c3 | |
* | |
* All pipeline steps can be found here: https://www.jenkins.io/doc/pipeline/steps/ | |
*/ | |
// The global script scope | |
def ctx = context(scope: scriptScope()) |
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
### | |
PERSONAL COLLECTION OF MEMO | |
by https://github.com/niainaLens | |
### |
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
GCP_CLUSTER_NAME=europe-west1-fluffy-bcad8335-gke | |
GCP_CLUSTER_ZONE=europe-west1-b | |
curl --cacert <(gcloud container clusters describe "${GCP_CLUSTER_NAME}" \ | |
--zone "${GCP_CLUSTER_ZONE}" \ | |
--format='value(masterAuth.clusterCaCertificate)' | base64 -d\ | |
) \ | |
--header "Authorization: Bearer $(gcloud auth print-access-token)" \ | |
https://$(gcloud container clusters describe "${GCP_CLUSTER_NAME}" \ | |
--zone "${GCP_CLUSTER_ZONE}" \ |
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 | |
debug=0 | |
if [[ $# -eq 0 ]] ; then | |
echo 'usage: initCognitoUser [parameters]' | |
echo 'paramters:' | |
echo '-c --clientId: Cognito ClientId' | |
echo '-i --poolId: Cognito UserPoolId' | |
echo '-u --username: Username of new User' | |
echo '-p --password: Password of new User' |
1 shard, 0 replica.
Update default template:
curl -X PUT http://localhost:9200/_template/default -H 'Content-Type: application/json' -d '{"index_patterns": ["*"],"order": -1,"settings": {"number_of_shards": "1","number_of_replicas": "0"}}'
NewerOlder