/_cluster/health?v
/_cat/nodes?v
/_nodes/stats/_all
/_cat/indices?v
/_cat/shards?v
This file contains 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
@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)); |
Playbook
---
- hosts: localhost
vars:
ansistrano_deploy_to: "/var/www/html"
roles:
- carlosbuenosvinos.ansistrano-deploy
This file contains 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 ( | |
"flag" | |
"fmt" | |
"log" | |
"reflect" | |
"time" | |
"k8s.io/apimachinery/pkg/util/runtime" |
This file contains 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 net.armesto.feign; | |
import feign.Feign; | |
import feign.Param; | |
import feign.RequestLine; | |
import feign.jackson.JacksonDecoder; | |
import feign.jackson.JacksonEncoder; | |
import rx.Observable; | |
import java.util.List; |
This file contains 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
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) | |
} |
This file contains 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
func NewIamRoleAnnotator(k8sCli kubernetes.Interface, awsAccountID string, logger Logger) *IamRoleAnnotator { | |
return &IamRoleAnnotator{ | |
client: k8sCli, | |
awsAccountID: awsAccountID, | |
logger: logger, | |
} | |
} |
This file contains 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
https://docs.google.com/presentation/d/18c0x7QhfDSxcgUZaDHgyT5UbdE2bAm2yeAXnNGjdR4U/edit?usp=sharing | |
https://drive.google.com/open?id=1m-lhdU-iGoGGgYkVcH_rJSz-fxzwzaMi |
This file contains 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
sonobuoy-config: | |
driver: Job | |
plugin-name: giantswarm | |
result-format: raw | |
spec: | |
image: sonobuoy-plugin | |
name: plugin | |
env: | |
- name: KUBECONFIG | |
- name: CP_KUBECONFIG |
This file contains 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 botocore.credentials import InstanceMetadataProvider, InstanceMetadataFetcher | |
provider = InstanceMetadataProvider(iam_role_fetcher=InstanceMetadataFetcher(timeout=1000, num_attempts=2)) | |
credentials = provider.load() | |
access_key = credentials.access_key | |
secret_key = credentials.secret_key | |
print access_key | |
print secret_key |