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
# AWS CLI install | |
curl https://s3.amazonaws.com/aws-cli/awscli-bundle.zip -o awscli-bundle.zip | |
unzip awscli-bundle.zip | |
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws |
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: ConfigMap | |
metadata: | |
name: proxy-environment-variables | |
namespace: kube-system | |
data: | |
HTTPS_PROXY: http://customer.proxy.host:proxy_port | |
HTTP_PROXY: http://customer.proxy.host:proxy_port | |
NO_PROXY: <k8s_CIDR in the form x.x.x.x/x>,localhost,127.0.0.1,<VPC_CIDR in the form x.x.x.x/x>,169.254.169.254,.internal,<VPC_Endpoints_Optional> |
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
kubectl get service kubernetes -o jsonpath='{.spec.clusterIP}'; echo |
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
AWSTemplateFormatVersion: 2010-09-09 | |
Description: Amazon EKS - Node Group | |
Metadata: | |
'AWS::CloudFormation::Interface': | |
ParameterGroups: | |
- Label: | |
default: EKS Cluster | |
Parameters: | |
- ClusterName | |
- ClusterControlPlaneSecurityGroup |
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: ConfigMap | |
metadata: | |
name: aws-auth | |
namespace: kube-system | |
data: | |
mapRoles: | | |
- rolearn: <ARN of instance role (not instance profile)> | |
username: system:node:{{EC2PrivateDNSName}} | |
groups: |
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
# This script sets up the VPC Webhook for an EKS Cluster. | |
# | |
# Download the webhook-create-signed-cert.sh and webhook-patch-ca-bundle.sh files | |
curl -o webhook-create-signed-cert.sh https://amazon-eks.s3-us-west-2.amazonaws.com/manifests/us-west-2/vpc-admission-webhook/latest/webhook-create-signed-cert.sh | |
curl -o webhook-patch-ca-bundle.sh https://amazon-eks.s3-us-west-2.amazonaws.com/manifests/us-west-2/vpc-admission-webhook/latest/webhook-patch-ca-bundle.sh | |
# Download the Deployment YAML file | |
curl -o vpc-admission-webhook-deployment.yaml https://amazon-eks.s3-us-west-2.amazonaws.com/manifests/us-west-2/vpc-admission-webhook/latest/vpc-admission-webhook-deployment.yaml |
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
AWSTemplateFormatVersion: "2010-09-09" | |
Description: Amazon EKS - Windows Node Group. | |
Metadata: | |
"AWS::CloudFormation::Interface": | |
ParameterGroups: | |
- Label: | |
default: EKS Cluster | |
Parameters: |
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
{ | |
"kind": "KubeletConfiguration", | |
"apiVersion": "kubelet.config.k8s.io/v1beta1", | |
"syncFrequency": "1m0s", | |
"fileCheckFrequency": "20s", | |
"httpCheckFrequency": "20s", | |
"address": "0.0.0.0", | |
"port": 10250, | |
"tlsCertFile": "/root/cdk/server.crt", | |
"tlsPrivateKeyFile": "/root/cdk/server.key", |
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
[Unit] | |
Description=Kubernetes Kubelet | |
Documentation=https://github.com/kubernetes/kubernetes | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
ExecStartPre=/sbin/iptables -P FORWARD ACCEPT | |
ExecStart=/usr/bin/kubelet --cloud-provider aws \ | |
--config /etc/kubernetes/kubelet/kubelet-config.json \ |
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
file that has been created by eksctl | |
``` | |
# /etc/systemd/system/kubelet.service | |
# eksctl-specific systemd drop-in unit for kubelet, for Amazon Linux 2 (AL2) | |
[Service] | |
# Local metadata parameters: REGION, AWS_DEFAULT_REGION | |
EnvironmentFile=/etc/eksctl/metadata.env | |
# Global and static parameters: CLUSTER_DNS, NODE_LABELS, NODE_TAINTS | |
EnvironmentFile=/etc/eksctl/kubelet.env |
OlderNewer