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: Service | |
| metadata: | |
| name: base1 | |
| spec: | |
| ports: | |
| - name: "8080" | |
| port: 8080 | |
| targetPort: 8080 | |
| selector: |
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
| version: '2' | |
| services: | |
| base1: | |
| image: tomaskral/nonroot-nginx | |
| ports: | |
| - 8080:8080 |
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
| version: 0.1-dev | |
| services: | |
| - name: helloworld | |
| containers: | |
| - image: tomaskral/nonroot-nginx | |
| ports: | |
| - type: external |
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 create -f test.yaml | |
| #secret "postgres-files-secret" created | |
| #statefulset "postgres-statefulset" created | |
| kubectl exec -it postgres-statefulset-0 /bin/sh | |
| ls -lah /var/lib/postgresql/ | |
| # total 12 | |
| # drwxr-xr-x 3 root root 4.0K May 19 16:02 . | |
| # drwxr-xr-x 3 root root 4.0K May 19 16:02 .. |
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
| name: httpd | |
| containers: | |
| - image: centos/httpd | |
| services: | |
| - name: httpd | |
| type: LoadBalancer | |
| ports: | |
| - port: 80 | |
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
| {"swagger":"2.0","info":{"version":"1.3","title":"hledger API","license":{"name":"GPLv3+"},"description":"This is the API provided by hledger-api for reading hledger data"},"paths":{"/api/v1/accountnames":{"get":{"produces":["application/json;charset=utf-8"],"responses":{"200":{"schema":{"items":{"type":"string"},"type":"array"},"description":""}}}},"/api/v1/transactions":{"get":{"produces":["application/json;charset=utf-8"],"responses":{"200":{"schema":{"items":{"$ref":"#/definitions/Transaction"},"type":"array"},"description":""}}}},"/api/v1/prices":{"get":{"produces":["application/json;charset=utf-8"],"responses":{"200":{"schema":{"items":{"$ref":"#/definitions/MarketPrice"},"type":"array"},"description":""}}}},"/api/v1/commodities":{"get":{"produces":["application/json;charset=utf-8"],"responses":{"200":{"schema":{"items":{"type":"string"},"type":"array"},"description":""}}}},"/api/v1/accounts":{"get":{"produces":["application/json;charset=utf-8"],"responses":{"200":{"schema":{"items":{"$ref":"#/definitio |
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
| #!/bin/bash | |
| # used some from advanced script to have multiple ports: use an equal number of guest and host ports | |
| # /etc/libvirt/hooks/qemu | |
| # Update the following variables to fit your setup | |
| Guest_name='kvm' | |
| Guest_ipaddr='' //MODIFY | |
| Host_ipaddr='' //MODIFY | |
| Guest_port=( '80' '443' '22' ) |
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
| javascript:( | |
| function(){ | |
| var today = new Date(); | |
| var lastWeek = new Date(today.getFullYear(), today.getFullYear, today.getDate() - 7); | |
| var lastWeekDate = lastWeek.getFullYear() +"-"+ lastWeek.getMonth() +"-"+ lastWeek.getDay(); | |
| var project = "kedgeproject/kedge"; | |
| var type = "pulls"; | |
| var q = "is:pr updated:>=2017-10-11 is:closed"; |
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
| kind: Deployment | |
| metadata: | |
| name: frontend | |
| labels: | |
| name: guestbook | |
| version: 0.1 | |
| manager: managerTool | |
| component: frontend | |
| componentName: guestbook | |
| componentVersion: v4 |
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
| #/bin/bash | |
| # temporary file to save output | |
| output=`mktemp` | |
| for file in `find docs/examples examples -name "*.yaml"`; do | |
| ./kedge generate --enable-validation -f $file > $output 2>&1 | |
| if [ $? -ne 0 ]; then | |
| echo "validation failed for $file" | |
| cat $output |