mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
minor updates
This commit is contained in:
parent
fdb7cbc1b5
commit
85f23c51ab
@ -7,14 +7,6 @@ provider "aws" {
|
|||||||
region = var.region
|
region = var.region
|
||||||
}
|
}
|
||||||
|
|
||||||
provider "null" {
|
|
||||||
version = "~> 2.1"
|
|
||||||
}
|
|
||||||
|
|
||||||
provider "template" {
|
|
||||||
version = "~> 2.1"
|
|
||||||
}
|
|
||||||
|
|
||||||
data "aws_eks_cluster" "cluster" {
|
data "aws_eks_cluster" "cluster" {
|
||||||
name = module.eks.cluster_id
|
name = module.eks.cluster_id
|
||||||
}
|
}
|
||||||
@ -98,7 +90,7 @@ module "eks" {
|
|||||||
name = "worker-group-1"
|
name = "worker-group-1"
|
||||||
instance_type = "t2.small"
|
instance_type = "t2.small"
|
||||||
additional_userdata = "echo foo bar"
|
additional_userdata = "echo foo bar"
|
||||||
asg_desired_capacity = 2
|
asg_desired_capacity = 1
|
||||||
additional_security_group_ids = [aws_security_group.worker_group_mgmt_one.id]
|
additional_security_group_ids = [aws_security_group.worker_group_mgmt_one.id]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
@ -128,7 +120,7 @@ resource "kubernetes_deployment" "example" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
spec {
|
spec {
|
||||||
replicas = 3
|
replicas = 2
|
||||||
|
|
||||||
selector {
|
selector {
|
||||||
match_labels = {
|
match_labels = {
|
||||||
|
@ -67,8 +67,12 @@ curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s http
|
|||||||
chmod +x ./kubectl
|
chmod +x ./kubectl
|
||||||
mv ./kubectl /usr/local/bin/kubectl
|
mv ./kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
|
kubectl get nodes
|
||||||
|
kubectl get deploy
|
||||||
|
kubectl get pods
|
||||||
kubectl get svc
|
kubectl get svc
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
|
Loading…
x
Reference in New Issue
Block a user