Skip to content

Commit

Permalink
*: regenerate doc
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed May 6, 2020
1 parent c7035bf commit 3715e73
Show file tree
Hide file tree
Showing 5 changed files with 179 additions and 5 deletions.
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ Make sure AWS credential is located in your machine:
aws sts get-caller-identity --query Arn --output text
```

See https://github.com/aws/aws-k8s-tester/blob/master/ec2config/README.md for more.
See the following for more fields:
- https://github.com/aws/aws-k8s-tester/blob/master/ec2config/README.md
- https://pkg.go.dev/github.com/aws/aws-k8s-tester/ec2config?tab=doc
- https://github.com/aws/aws-k8s-tester/blob/master/ec2config/default.yaml

```bash
cd /tmp
AWS_K8S_TESTER_EC2_ON_FAILURE_DELETE=true \
AWS_K8S_TESTER_EC2_REGION=us-west-2 \
AWS_K8S_TESTER_EC2_S3_BUCKET_CREATE=true \
Expand Down Expand Up @@ -111,10 +113,20 @@ Make sure AWS credential is located in your machine:
aws sts get-caller-identity --query Arn --output text
```

See https://github.com/aws/aws-k8s-tester/blob/master/eksconfig/README.md for more.
See the following for more fields:
- https://github.com/aws/aws-k8s-tester/blob/master/eksconfig/README.md
- https://pkg.go.dev/github.com/aws/aws-k8s-tester/eksconfig?tab=doc
- https://github.com/aws/aws-k8s-tester/blob/master/eksconfig/default.yaml

```bash
cd /tmp
# easiest way, use the defaults
# creates role, VPC, EKS cluster
rm -rf /tmp/${USER}-test-eks-prod*
aws-k8s-tester eks create cluster --enable-prompt=true -p /tmp/${USER}-test-prod-eks.yaml
aws-k8s-tester eks delete cluster --enable-prompt=true -p /tmp/${USER}-test-prod-eks.yaml

# advanced options can be set via environmental variables
# e.g. node groups, managed node groups, add-ons
AWS_K8S_TESTER_EKS_REGION=us-west-2 \
AWS_K8S_TESTER_EKS_S3_BUCKET_CREATE=true \
AWS_K8S_TESTER_EKS_S3_BUCKET_CREATE_KEEP=true \
Expand Down Expand Up @@ -262,7 +274,7 @@ AWS_K8S_TESTER_EKS_ADD_ON_HOLLOW_NODES_REPOSITORY_IMAGE_TAG=latest \
Install `eks-utils` from https://github.com/aws/aws-k8s-tester/releases.

```
AWS_K8S_TESTER_VERSION=v1.1.5
AWS_K8S_TESTER_VERSION=v1.1.6
DOWNLOAD_URL=https://github.com/aws/aws-k8s-tester/releases/download
rm -rf /tmp/aws-k8s-tester
Expand Down
64 changes: 64 additions & 0 deletions ec2config/default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
asgs:
ec2-2020050610-sunf5nd46nho-asg:
ami-type: AL2_x86_64
asg-cfn-stack-id: ""
asg-desired-capacity: 1
asg-max-size: 1
asg-min-size: 1
image-id: ""
image-id-ssm-parameter: /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2
instanaces: null
instance-types:
- c5.xlarge
logs: null
name: ec2-2020050610-sunf5nd46nho-asg
remote-access-user-name: ec2-user
ssm-document-cfn-stack-id: ""
ssm-document-cfn-stack-name: ec2-2020050610-sunf5nd46nho-ssm-document
ssm-document-command-ids: null
ssm-document-commands: ""
ssm-document-create: false
ssm-document-execution-timeout-in-seconds: 3600
ssm-document-name: ec22020050610sunf5nd46nhoSSMDocument
volume-size: 40
asgs-fetch-logs: true
asgs-logs-dir: /home/ANT.AMAZON.COM/leegyuho/go/src/github.com/aws/aws-k8s-tester/ec2config/ec2-2020050610-sunf5nd46nho-logs-remote
aws-account-id: ""
aws-credential-path: ""
aws-iam-role-arn: ""
aws-user-id: ""
config-path: /home/ANT.AMAZON.COM/leegyuho/go/src/github.com/aws/aws-k8s-tester/ec2config/default.yaml
dhcp-options-domain-name: ""
dhcp-options-domain-name-servers: null
log-level: info
log-outputs:
- stderr
- /home/ANT.AMAZON.COM/leegyuho/go/src/github.com/aws/aws-k8s-tester/ec2config/default.yaml.log
name: ec2-2020050610-sunf5nd46nho
on-failure-delete: true
on-failure-delete-wait-seconds: 120
private-subnet-ids: null
public-subnet-ids: null
region: us-west-2
remote-access-commands-output-path: /home/ANT.AMAZON.COM/leegyuho/go/src/github.com/aws/aws-k8s-tester/ec2config/default.ssh.sh
remote-access-key-create: true
remote-access-key-name: ec2-2020050610-sunf5nd46nho-key-ec2
remote-access-private-key-path: /tmp/inventiveu.insecure.key
role-arn: ""
role-cfn-stack-id: ""
role-create: true
role-managed-policy-arns: null
role-name: ec2-2020050610-sunf5nd46nho-role-ec2
role-service-principals: null
s3-bucket-create: false
s3-bucket-create-keep: false
s3-bucket-lifecycle-expiration-days: 0
s3-bucket-name: ""
security-group-id: ""
ssh-ingress-ipv4-range: ""
status: null
status-current: ""
up: false
vpc-cfn-stack-id: ""
vpc-create: true
vpc-id: ""
89 changes: 89 additions & 0 deletions eksconfig/default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
aws-cli-path: /home/ANT.AMAZON.COM/leegyuho/.local/bin/aws
client-burst: 20
client-qps: 10
client-timeout: 30000000000
client-timeout-string: 30s
clients: 3
command-after-create-add-ons: ""
command-after-create-add-ons-output-path: .log
command-after-create-add-ons-timeout: 180000000000
command-after-create-add-ons-timeout-string: 3m0s
command-after-create-cluster: ""
command-after-create-cluster-output-path: .log
command-after-create-cluster-timeout: 180000000000
command-after-create-cluster-timeout-string: 3m0s
config-path: /home/ANT.AMAZON.COM/leegyuho/go/src/github.com/aws/aws-k8s-tester/eksconfig/default.yaml
kubeconfig-path: /home/ANT.AMAZON.COM/leegyuho/go/src/github.com/aws/aws-k8s-tester/eksconfig/default.kubeconfig.yaml
kubectl-commands-output-path: /home/ANT.AMAZON.COM/leegyuho/go/src/github.com/aws/aws-k8s-tester/eksconfig/default.kubectl.sh
kubectl-download-url: https://storage.googleapis.com/kubernetes-release/release/v1.16.9/bin/linux/amd64/kubectl
kubectl-path: /tmp/kubectl-test-v1.16.9
log-level: info
log-outputs:
- stderr
- /home/ANT.AMAZON.COM/leegyuho/go/src/github.com/aws/aws-k8s-tester/eksconfig/default.log
name: eks-2020050610-waterfallv12
on-failure-delete: true
on-failure-delete-wait-seconds: 120
parameters:
dhcp-options-domain-name: ""
dhcp-options-domain-name-servers: null
encryption-cmk-arn: ""
encryption-cmk-create: true
private-subnet-ids: null
public-subnet-ids: null
request-header-key: ""
request-header-value: ""
resolver-url: ""
role-arn: ""
role-cfn-stack-id: ""
role-create: true
role-managed-policy-arns: null
role-name: eks-2020050610-waterfallv12-role-cluster
role-service-principals: null
signing-name: eks
tags: null
version: "1.16"
version-value: 1.16
vpc-cfn-stack-id: ""
vpc-create: true
vpc-id: ""
region: us-west-2
remote-access-commands-output-path: /home/ANT.AMAZON.COM/leegyuho/go/src/github.com/aws/aws-k8s-tester/eksconfig/default.ssh.sh
remote-access-key-create: true
remote-access-key-name: eks-2020050610-waterfallv12-key-nodes
remote-access-private-key-path: /home/ANT.AMAZON.COM/leegyuho/.ssh/kube_aws_rsa
s3-bucket-create: false
s3-bucket-create-keep: false
s3-bucket-lifecycle-expiration-days: 0
s3-bucket-name: ""
status:
aws-account-id: ""
aws-credential-path: ""
aws-iam-role-arn: ""
aws-user-id: ""
cluster-api-server-endpoint: ""
cluster-arn: ""
cluster-ca: ""
cluster-ca-decoded: ""
cluster-cfn-stack-id: ""
cluster-control-plane-security-group-id: ""
cluster-oidc-issuer-arn: ""
cluster-oidc-issuer-ca-thumbprint: ""
cluster-oidc-issuer-host-path: ""
cluster-oidc-issuer-url: ""
cluster-status: null
cluster-status-current: ""
server-version-info:
buildDate: ""
compiler: ""
gitCommit: ""
gitTreeState: ""
gitVersion: ""
goVersion: ""
major: ""
minor: ""
platform: ""
version-value: 0
time-utc-create-complete: "0001-01-01T00:00:00Z"
time-utc-delete-start: "0001-01-01T00:00:00Z"
up: false
4 changes: 4 additions & 0 deletions scripts/ec2config.gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ fi
rm -f ec2config/README.md
go run ec2config/gen/main.go
cat ec2config/README.md

go install -v ./cmd/aws-k8s-tester
aws-k8s-tester ec2 create config --path ./ec2config/default.yaml
rm -f ./ec2config/default.ssh.sh
5 changes: 5 additions & 0 deletions scripts/eksconfig.gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ fi
rm -f eksconfig/README.md
go run eksconfig/gen/main.go
cat eksconfig/README.md

go install -v ./cmd/aws-k8s-tester
aws-k8s-tester eks create config --path ./eksconfig/default.yaml
rm -f ./eksconfig/default.kubectl.sh
rm -f ./eksconfig/default.ssh.sh

0 comments on commit 3715e73

Please sign in to comment.