Playbook
---
- hosts: localhost
vars:
ansistrano_deploy_to: "/var/www/html"
roles:
- carlosbuenosvinos.ansistrano-deploy
sonobuoy-config: | |
driver: Job | |
plugin-name: giantswarm | |
result-format: raw | |
spec: | |
image: sonobuoy-plugin | |
name: plugin | |
env: | |
- name: KUBECONFIG | |
- name: CP_KUBECONFIG |
https://docs.google.com/presentation/d/18c0x7QhfDSxcgUZaDHgyT5UbdE2bAm2yeAXnNGjdR4U/edit?usp=sharing | |
https://drive.google.com/open?id=1m-lhdU-iGoGGgYkVcH_rJSz-fxzwzaMi |
func NewIamRoleAnnotator(k8sCli kubernetes.Interface, awsAccountID string, logger Logger) *IamRoleAnnotator { | |
return &IamRoleAnnotator{ | |
client: k8sCli, | |
awsAccountID: awsAccountID, | |
logger: logger, | |
} | |
} |
func (s *IamRoleAnnotator) submitChangesToKubernetesAPI(deployment *appsv1beta1.Deployment) (*appsv1beta1.Deployment, error) { | |
s.logger.Infof("Sending changes to k8s API") | |
return s.client.AppsV1beta1().Deployments(deployment.Namespace).Update(deployment) | |
} |
<?php | |
echo "Ping " . $_SERVER['SERVER_ADDR']; |
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"reflect" | |
"time" | |
"k8s.io/apimachinery/pkg/util/runtime" |
Playbook
---
- hosts: localhost
vars:
ansistrano_deploy_to: "/var/www/html"
roles:
- carlosbuenosvinos.ansistrano-deploy
@RequestMapping(value = "/endpoint", method = RequestMethod.PUT, produces = "application/json") | |
public Single<String> sayHello(HttpServletResponse response) throws IOException { | |
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("payload_big.json"); | |
Observable<String> sobs = Observable.create(new Observable.OnSubscribe<String>() { | |
@Override | |
public void call(Subscriber<? super String> subscriber) { | |
try { | |
BufferedReader br = new BufferedReader(new InputStreamReader(inputStream)); |
curl -L $URL | tar xz - -C $TARGET
wget -qO- http://example.org/file.zip | bsdtar -xvf-
wget -qO- http://example.org/file.zip | jar xvf /dev/stdin
wget http://www.vim.org/scripts/download_script.php?src_id=11834 -O temp.zip; unzip temp.zip; rm temp.zip
wget -qO- -O tmp.zip http://downloads.wordpress.org/plugin/akismet.2.5.3.zip && unzip tmp.zip && rm tmp.zip