Skip to content

Commit abbdbc1

Browse files
author
huoxian
committed
add apiserver unauth and dashboard vul labs 2
1 parent 703f4f8 commit abbdbc1

2 files changed

Lines changed: 0 additions & 98 deletions

File tree

kubernetes/apiserver/dashboard/main.tf

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -21,45 +21,6 @@ resource "alicloud_instance" "instance" {
2121
destination = "/root/kk" // deploy_k8s.sh用来安装k8s
2222
}
2323

24-
provisioner "file" {
25-
connection {
26-
type = "ssh"
27-
host = self.public_ip
28-
user = "root"
29-
password = "Huoxian@123"
30-
timeout = "1h"
31-
}
32-
33-
source = "resource/ca.crt"
34-
destination = "/root/ca.crt"
35-
}
36-
37-
provisioner "file" {
38-
connection {
39-
type = "ssh"
40-
host = self.public_ip
41-
user = "root"
42-
password = "Huoxian@123"
43-
timeout = "1h"
44-
}
45-
46-
source = "resource/server.crt"
47-
destination = "/root/server.crt"
48-
}
49-
50-
provisioner "file" {
51-
connection {
52-
type = "ssh"
53-
host = self.public_ip
54-
user = "root"
55-
password = "Huoxian@123"
56-
timeout = "1h"
57-
}
58-
59-
source = "resource/server.key"
60-
destination = "/root/server.key"
61-
}
62-
6324
provisioner "remote-exec" {
6425
connection {
6526
type = "ssh"
@@ -71,16 +32,6 @@ resource "alicloud_instance" "instance" {
7132
script = "resource/deploy_k8s.sh"
7233
}
7334

74-
provisioner "remote-exec" {
75-
connection {
76-
type = "ssh"
77-
host = self.public_ip
78-
user = "root"
79-
password = "Huoxian@123"
80-
timeout = "1h"
81-
}
82-
}
83-
8435
depends_on = [
8536
alicloud_security_group.group,
8637
alicloud_vswitch.vswitch,

kubernetes/apiserver/unauth/main.tf

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -21,45 +21,6 @@ resource "alicloud_instance" "instance" {
2121
destination = "/root/kk" // deploy_k8s.sh用来安装k8s
2222
}
2323

24-
provisioner "file" {
25-
connection {
26-
type = "ssh"
27-
host = self.public_ip
28-
user = "root"
29-
password = "Huoxian@123"
30-
timeout = "1h"
31-
}
32-
33-
source = "resource/ca.crt"
34-
destination = "/root/ca.crt"
35-
}
36-
37-
provisioner "file" {
38-
connection {
39-
type = "ssh"
40-
host = self.public_ip
41-
user = "root"
42-
password = "Huoxian@123"
43-
timeout = "1h"
44-
}
45-
46-
source = "resource/server.crt"
47-
destination = "/root/server.crt"
48-
}
49-
50-
provisioner "file" {
51-
connection {
52-
type = "ssh"
53-
host = self.public_ip
54-
user = "root"
55-
password = "Huoxian@123"
56-
timeout = "1h"
57-
}
58-
59-
source = "resource/server.key"
60-
destination = "/root/server.key"
61-
}
62-
6324
provisioner "remote-exec" {
6425
connection {
6526
type = "ssh"
@@ -71,16 +32,6 @@ resource "alicloud_instance" "instance" {
7132
script = "resource/deploy_k8s.sh"
7233
}
7334

74-
provisioner "remote-exec" {
75-
connection {
76-
type = "ssh"
77-
host = self.public_ip
78-
user = "root"
79-
password = "Huoxian@123"
80-
timeout = "1h"
81-
}
82-
}
83-
8435
depends_on = [
8536
alicloud_security_group.group,
8637
alicloud_vswitch.vswitch,

0 commit comments

Comments
 (0)