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
❯ brew list --full-name -1 | |
autoconf | |
aws-okta | |
awscli | |
ca-certificates | |
fish | |
fzf | |
gdbm | |
git-delta | |
jq |
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
package main | |
import ( | |
"github.com/labstack/echo" | |
"net/http" | |
) | |
func main() { | |
e := echo.New() | |
e.Use(FailDifferently) |
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: autoscaling/v2beta1 | |
kind: HorizontalPodAutoscaler | |
metadata: | |
name: nginx | |
spec: | |
minReplicas: 1 | |
maxReplicas: 10000 | |
scaleTargetRef: | |
apiVersion: apps/v1 | |
kind: Deployment |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
2018-11-29T15:20:27.859-0800 [DEBUG] plugin.terraform-provider-google_v1.18.0_x4: ---[ REQUEST ]--------------------------------------- | |
2018-11-29T15:20:27.859-0800 [DEBUG] plugin.terraform-provider-google_v1.18.0_x4: PUT /v1beta1/projects/liveramp-eng-actbe/locations/us-central1/clusters/act-be-prod-cluster?alt=json&prettyPrint=false HTTP/1.1 | |
2018-11-29T15:20:27.859-0800 [DEBUG] plugin.terraform-provider-google_v1.18.0_x4: Host: container.googleapis.com | |
2018-11-29T15:20:27.859-0800 [DEBUG] plugin.terraform-provider-google_v1.18.0_x4: User-Agent: google-api-go-client/0.5 Terraform/0.11.7 (+https://www.terraform.io) | |
2018-11-29T15:20:27.859-0800 [DEBUG] plugin.terraform-provider-google_v1.18.0_x4: Content-Length: 14 | |
2018-11-29T15:20:27.859-0800 [DEBUG] plugin.terraform-provider-google_v1.18.0_x4: Content-Type: application/json | |
2018-11-29T15:20:27.859-0800 [DEBUG] plugin.terraform-provider-google_v1.18.0_x4: Accept-Encoding: gzip | |
2018-11-29T15:20:27.859-0800 [DEBUG] plugin.terraform-provider-google_v1.18.0_x4: | |
2 |
I hereby claim:
- I am pratikmallya on github.
- I am pratikmallya (https://keybase.io/pratikmallya) on keybase.
- I have a public key ASC2gLFkR_rfTTjNNTKzOYc0RFr5KSIObVU0N8-fTrCivgo
To claim this, I am signing this object:
When deploying k8s resources from task runners (like Jenkins) its often convenient to use environment variables directly in the template, and then pre-process the template using envsubst
before feeding it to kubectl apply.
That can be accomplished by the following one liner (assuming you have gettext
GNU package installed, which provides envsubst
):
envsubst < k8s_template.yml | kubectl apply -f -
example k8s_template.yml:
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
# check if job exists | |
curl -XGET 'http://jenkins/checkJobName?value=yourJobFolderName' --user user.name:YourAPIToken | |
# with folder plugin | |
curl -s -XPOST 'http://jenkins/job/FolderName/createItem?name=yourJobName' --data-binary @config.xml -H "Content-Type:text/xml" --user user.name:YourAPIToken | |
# without folder plugin | |
curl -s -XPOST 'http://jenkins/createItem?name=yourJobName' --data-binary @config.xml -H "Content-Type:text/xml" --user user.name:YourAPIToken | |
# create folder |
NewerOlder