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
mkdir newcerts certs crl private requests | |
touch index.txt | |
touch index.txt.attr | |
echo '1000' > serial | |
mkdir intermediate/newcerts intermediate/certs intermediate/crl intermediate/csr intermediate/private | |
touch intermediate/index.txt | |
touch intermediate/index.txt.attr | |
echo '1234' > intermediate/serial | |
echo 1000 > intermediate/crlnumber |
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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: "demo-2048" | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
namespace: "demo-2048" | |
name: "deployment-2048" |
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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: "demo-echo" | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
namespace: demo-echo | |
name: deployment-echo |
This file has been truncated, but you can view the full file.
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
AppMesh-K8s integration API issues | |
Clarify concepts: | |
Below are my understanding of AppMesh’s object’s corresponding Kubernetes constructs.(correct my if i’m wrong) | |
1. *AppMesh VirtualService* is like a *union* of K8s Service and K8s Ingress. | |
1. when a VirtualService is using a VirtualNode as backend, it’s similar to a K8s Service. | |
2. when a VirtualService is using a VirtualRouter as backend, it’s similar to a K8s Ingress. | |
2. *AppMesh VirtualNode* is like a K8s Deployment or ReplicaSet, which groups a set of K8s Pods. |
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
apiVersion: apiextensions.k8s.io/v1beta1 | |
kind: CustomResourceDefinition | |
metadata: | |
annotations: | |
controller-gen.kubebuilder.io/version: v0.2.4 | |
creationTimestamp: null | |
name: gatewayroutes.appmesh.k8s.aws | |
spec: | |
group: appmesh.k8s.aws | |
names: |
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
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: demo-4cabd2e | |
--- | |
apiVersion: appmesh.k8s.aws/v1beta2 | |
kind: Mesh | |
metadata: | |
name: mesh-demo-4cabd2e |
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
import urllib, json | |
import requests | |
from boto.sts import STSConnection | |
sts_connection = STSConnection() | |
federation_token = sts_connection.get_federation_token(name="M00nF1sh") | |
session_token = { | |
"sessionId": federation_token.credentials.access_key, | |
"sessionKey": federation_token.credentials.secret_key, | |
"sessionToken": federation_token.credentials.session_token |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: eks-oncall-troubleshot-hn | |
spec: | |
hostNetwork: true | |
nodeName: ip-10-89-4-42.us-west-2.compute.internal | |
containers: | |
- name: netshoot | |
image: nicolaka/netshoot |
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
spec: | |
template: | |
spec: | |
containers: | |
- name: kube-proxy | |
command: | |
- kube-proxy | |
- --hostname-override=$(NODE_NAME) | |
- --v=2 | |
- --config=/var/lib/kube-proxy-config/config |