-
Notifications
You must be signed in to change notification settings - Fork 0
/
k3os-cloud.yaml
52 lines (50 loc) · 2.1 KB
/
k3os-cloud.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# cloud-config
hostname: shawn-business-1
write_files:
- path: /var/lib/connman/default.config
encoding: ""
content: |-
[service_eth0]
Type = ethernet
IPv4 = 172.16.10.246/255.255.255.0/172.16.10.250
IPv6 = off
Nameservers = 172.16.10.250
SearchDomains = chlover.local
Domain = chlover.local
TimeServers = ntp.aliyun.com, time1.cloud.tencent.com, 0.cn.pool.ntp.org
- path: /var/lib/rancher/k3s/agent/etc/containerd/config.toml.tmpl
encoding: ""
content: |-
[plugins.opt]
path = "{{ .NodeConfig.Containerd.Opt }}"
[plugins.cri]
stream_server_address = "{{ .NodeConfig.AgentConfig.NodeName }}"
stream_server_port = "10010"
[plugins.cri.cni]
bin_dir = "{{ .NodeConfig.AgentConfig.CNIBinDir }}"
conf_dir = "{{ .NodeConfig.AgentConfig.CNIConfDir }}"
[plugins.cri.registry.mirrors]
[plugins.cri.registry.mirrors."docker.io"]
endpoint = ["https://2vuvqnsg.mirror.aliyuncs.com"]
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCuem1Hr6mvnLWfVQQTv7CTkZgM9NuL6RFtYuJAIB6PgYKaeOzy0OALVQvqmIRcRU+7K/bRWyrxHTzcfLSC96S0aDaSnLuzViF1rNC1hBSCk1gF1KClq+ril2ddG6tRCJOopWEFyfUbSbCuziePgIWUNGJCQ0/ugKNmFmFgKcYGrTY3Ev2gC4JYTq9wu2Znv5UWfIa/Qpbbdc4GSiK6teLUn1xBFSGHFw2VEOiiOKV/Zz9thUZJFIxXKIW1wEv2Ys0JqO3s/w4N/TBMhDxrEXRSJT31cd0E/n/8vZp8CvoVQW+BHRcAaIFmyne4g3JQZAIOcGMX7c+cESseN8kwpFudxrx6dKQdzAxqgyJos/1w1GBp1iZIKioieZNhzUjTFqryb2KFzOq/SgRNeZZLkbSS45Lci5fv07QMpZ4cCPvq3d5aU5D/N2wJucVI+3NAIab1Ey2UUGJMXdVhnvfwljRJKIcE7fTnMHeTQszNX2uEDklcQ63BwCsZFj3G1mdDL8U= Administrator@YWZMVWW06YXA1XB
boot_cmd:
- "echo Asia/Shanghai > /etc/timezone"
- "echo 'AuthorizedKeysFile .ssh/authorized_keys' >> /etc/ssh/sshd_config"
k3os:
data_sources:
- aws
- cdrom
password: p@ssw0rd
ntp_servers:
- ntp.aliyun.com
- time1.cloud.tencent.com
- 0.cn.pool.ntp.org
dns_nameservers:
- 172.16.10.250
- 223.5.5.5
token: K107e8c9859406cfdbc4268eff6707e735b94af6d90c1babb9e8042c7f50cc1d28f::server:f3867ad5b1a16a6c23322f8f52a814bd
k3s_args:
- server
environment:
K3S_DATASTORE_ENDPOINT: "mysql://shawndb:chlover@tcp(192.168.100.252:3307)/k3s_business"