This file contains hidden or 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
| digit(0). | |
| digit(1). | |
| digit(2). | |
| digit(3). | |
| digit(4). | |
| digit(5). | |
| digit(6). | |
| digit(7). | |
| digit(8). |
This file contains hidden or 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 ( | |
| "fmt" | |
| "log" | |
| "math/rand" | |
| "sort" | |
| "time" | |
| ) |
This file contains hidden or 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
| FROM debian:stretch | |
| COPY ./out/Release /opt/node | |
| COPY ./deps/npm /opt/npm | |
| RUN ln -s /opt/node/node /usr/local/bin/nodejs | |
| RUN ln -s /opt/node/node /usr/local/bin/node | |
| RUN groupadd --gid 1000 node \ |
This file contains hidden or 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 thing | |
| import ( | |
| kube_leaderelection "k8s.io/client-go/tools/leaderelection" | |
| "k8s.io/client-go/tools/leaderelection/resourcelock" | |
| ) | |
| func elect(){ | |
| kubeClient := createKubeClient() |
This file contains hidden or 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
| users: | |
| - name: gke_project_us-central1-mycluster | |
| user: | |
| auth-provider: | |
| config: | |
| access-token: ya4...... | |
| cmd-args: config config-helper --format=json | |
| cmd-path: /home/joe/google-cloud-sdk/bin/gcloud | |
| expiry: 2017-09-13 15:01:44 | |
| expiry-key: '{.credential.token_expiry}' |
This file contains hidden or 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
| spec: | |
| kubeAPIServer: | |
| authenticationTokenWebhookCacheTtl: 2m0s | |
| authenticationTokenWebhookConfigFile: /srv/kubernetes/authn-webhook.yaml |
This file contains hidden or 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
| clusters: | |
| - name: authn-api | |
| cluster: | |
| certificate-authority: /etc/ssl/certs/ca-certificates.crt | |
| server: https://authn-api/oauth2/k8sTokenReview | |
| users: | |
| - name: authn-api | |
| user: |
This file contains hidden or 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
| [ | |
| { | |
| "trace_id": 4484498259527969686, | |
| "name": "entrypoint http localhost:8080", | |
| "id": 7862173007129245887, | |
| "annotations": [ | |
| { | |
| "timestamp": 1508267688673778, | |
| "value": "sr", | |
| "host": { |
This file contains hidden or 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
| job:events:avg_offset1d_rate1h = | |
| avg without (offset) (job_offset:events:offset_rate1h{offset=~”.d”}) | |
| job:events:avg_offset1w_rate1h = | |
| avg without (offset) (job_offset:events:offset_rate1h{offset=~”.w”}) | |
| job:events:stddev_offset1d_rate1h = | |
| stddev without (offset) (job_offset:events:offset_rate1h{offset=~”.d”}) | |
| job:events:stddev_offset1w_rate1h = | |
| stddev without (offset) (job_offset:events:offset_rate1h{offset=~”.w”}) |
This file contains hidden or 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
| job_offset:events:offset_rate1h{offset=”1w”} = | |
| job:events:rate1h offset 1w | |
| job_offset:events:offset_rate1h{offset=”2w”} = | |
| job_offset:events:offset_rate1h{offset=”1w”} offset 1w | |
| job_offset:events:offset_rate1h{offset=”3w”} = | |
| job_offset:events:offset_rate1h{offset=”2w”} offset 1w |
NewerOlder