Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| { | |
| { | |
| "type": "add", | |
| "product": "Coca-Cola", | |
| "price": "1.25", | |
| "user": "1a0ce7f4", | |
| "count": 5 | |
| }, | |
| { | |
| "type": "remove", |
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
| stages: | |
| - deploy | |
| deploy: | |
| stage: deploy | |
| script: | |
| - mkdir .public | |
| - ls -all |
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
| kubectl delete secret -n namespace hostname.com | |
| kubectl create secret tls -n accept hostname.com --key /Volumes/Untitled/hostname.com/hostname.com.key --cert /Volumes/Untitled/hostname.com/hostname.com.pem |
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
| kubectl drain --force --ignore-daemonsets --delete-local-data ip-10-100-45-198.eu-west-1.compute.internal | |
| aws autoscaling detach-instances --instance-ids i-0d5a6fd4e9fbf4d47 --auto-scaling-group-name certs-2018 --should-decrement-desired-capacity |
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
| log-format-upstream: '{ "time": "$time_iso8601", "remote_addr": "$proxy_protocol_addr", | |
| "x-forward-for": "$proxy_add_x_forwarded_for", "request_id": "$req_id", "remote_user": | |
| "$remote_user", "bytes_sent": $bytes_sent, "request_time": $request_time, "status": | |
| $status, "vhost": "$host", "request_proto": "$server_protocol", "path": "$uri", | |
| "request_query": "$args", "request_length": $request_length, "duration": $request_time, | |
| "method": "$request_method", "http_referrer": "$http_referer", "http_user_agent": | |
| "$http_user_agent" }' |
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
| groups: | |
| - name: beertime.rules | |
| rules: | |
| - alert: BEERTIME | |
| expr: IF (day_of_week() == 5) and ( hour() >= 16 and hour() <= 16 ) | |
| for: 5m | |
| labels: | |
| service: "beer" | |
| severity: "critical" | |
| annotations: |
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
| elasticsearch: | |
| host: 'elasticsearch-example-es-cluster' | |
| port: 9200 | |
| tolerations: | |
| - key: node-role.kubernetes.io/master | |
| operator: Exists | |
| effect: NoSchedule | |
| configMaps: |
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
| ETCD_HOST=my-etcd-hostnam | |
| curl https://kubernetes.default.svc.cluster.local/apis --key worker-key.pem --cert worker.pem --cacert ca.pem --cert-type PEM | |
| curl https://$ETCD_HOST:2379 --key etcd-client-key.pem --cert etcd-client.pem --cacert ca.pem |
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
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: nginx | |
| namespace: default | |
| labels: | |
| app: nginx | |
| spec: | |
| containers: | |
| - name: nginx |
NewerOlder