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:
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "log" | |
| "os" | |
| "github.com/fsnotify/fsnotify" | |
| ) | 
| ❯ brew list --full-name -1 | |
| autoconf | |
| aws-okta | |
| awscli | |
| ca-certificates | |
| fish | |
| fzf | |
| gdbm | |
| git-delta | |
| jq | 
| .. code:: hcl | |
| resource "google_compute_global_address" "global-static-<SERVICE_NAME>" { | |
| project = "<PROJECT_NAME>" | |
| name = "<SERVICE_NAME>" | |
| } | 
| package main | |
| import ( | |
| "github.com/labstack/echo" | |
| "net/http" | |
| ) | |
| func main() { | |
| e := echo.New() | |
| e.Use(FailDifferently) | 
| apiVersion: autoscaling/v2beta1 | |
| kind: HorizontalPodAutoscaler | |
| metadata: | |
| name: nginx | |
| spec: | |
| minReplicas: 1 | |
| maxReplicas: 10000 | |
| scaleTargetRef: | |
| apiVersion: apps/v1 | |
| kind: Deployment | 
| 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:
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: