You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> We recommend you to only use INSTALL_* parameters for this case because this is a global setting to your K3s cluster. If you want to set the K3S_* environments, please use the K3s configuration file args.
179
+
180
+
#### Server/Agent Configuration File
181
+
182
+
In addition to configuring K3s with environment variables and CLI arguments, K3s can also use a config file.
183
+
184
+
If you want to do more customize and complex configurations for your K3s cluster, such as etcd snapshot or datastore. This arg is what you need.
185
+
186
+
Here's an example of a K3s server configuration with etcd snapshot information and change the node port range.
187
+
```yaml
188
+
etcd-snapshot-schedule-cron: "* * * * *"
189
+
etcd-snapshot-retention: 15
190
+
service-node-port-range: "20000-30000"
191
+
```
192
+
193
+
Save this yaml file to your local path, such as `myk3s-server-config.yaml`. Then pass this file by the following arg:
> We recommend you to only use INSTALL_* parameters for this case because this is a global setting to your K3s cluster. If you want to set the K3S_* environments, please use the K3s configuration file args.
133
+
134
+
#### Server/Agent Configuration File
135
+
136
+
In addition to configuring K3s with environment variables and CLI arguments, K3s can also use a config file.
137
+
138
+
If you want to do more customize and complex configurations for your K3s cluster, such as etcd snapshot or datastore. This arg is what you need.
139
+
140
+
Here's an example of a K3s server configuration with etcd snapshot information and change the node port range.
141
+
```yaml
142
+
etcd-snapshot-schedule-cron: "* * * * *"
143
+
etcd-snapshot-retention: 15
144
+
service-node-port-range: "20000-30000"
145
+
```
146
+
147
+
Save this yaml file to your local path, such as `myk3s-server-config.yaml`. Then pass this file by the following arg:
> We recommend you to only use INSTALL_* parameters for this case because this is a global setting to your K3s cluster. If you want to set the K3S_* environments, please use the K3s configuration file args.
96
+
97
+
#### Server/Agent Configuration File
98
+
99
+
In addition to configuring K3s with environment variables and CLI arguments, K3s can also use a config file.
100
+
101
+
If you want to do more customize and complex configurations for your K3s cluster, such as etcd snapshot or datastore. This arg is what you need.
102
+
103
+
Here's an example of a K3s server configuration with etcd snapshot information and change the node port range.
104
+
```yaml
105
+
etcd-snapshot-schedule-cron: "* * * * *"
106
+
etcd-snapshot-retention: 15
107
+
service-node-port-range: "20000-30000"
108
+
```
109
+
110
+
Save this yaml file to your local path, such as `myk3s-server-config.yaml`. Then pass this file by the following arg:
> We recommend you to only use INSTALL_* parameters for this case because this is a global setting to your K3s cluster. If you want to set the K3S_* environments, please use the K3s configuration file args.
102
+
103
+
#### Server/Agent Configuration File
104
+
105
+
In addition to configuring K3s with environment variables and CLI arguments, K3s can also use a config file.
106
+
107
+
If you want to do more customize and complex configurations for your K3s cluster, such as etcd snapshot or datastore. This arg is what you need.
108
+
109
+
Here's an example of a K3s server configuration with etcd snapshot information and change the node port range.
110
+
```yaml
111
+
etcd-snapshot-schedule-cron: "* * * * *"
112
+
etcd-snapshot-retention: 15
113
+
service-node-port-range: "20000-30000"
114
+
```
115
+
116
+
Save this yaml file to your local path, such as `myk3s-server-config.yaml`. Then pass this file by the following arg:
> We recommend you to only use INSTALL_* parameters for this case because this is a global setting to your K3s cluster. If you want to set the K3S_* environments, please use the K3s configuration file args.
148
+
149
+
#### Server/Agent Configuration File
150
+
151
+
In addition to configuring K3s with environment variables and CLI arguments, K3s can also use a config file.
152
+
153
+
If you want to do more customize and complex configurations for your K3s cluster, such as etcd snapshot or datastore. This arg is what you need.
154
+
155
+
Here's an example of a K3s server configuration with etcd snapshot information and change the node port range.
156
+
```yaml
157
+
etcd-snapshot-schedule-cron: "* * * * *"
158
+
etcd-snapshot-retention: 15
159
+
service-node-port-range: "20000-30000"
160
+
```
161
+
162
+
Save this yaml file to your local path, such as `myk3s-server-config.yaml`. Then pass this file by the following arg:
| TLS Sans | 在 TLS 证书中添加其他主机名或 IP 作为主题备用名称,具体功能可查看[这里](https://docs.rancher.cn/docs/k3s/installation/install-options/server-config/_index#%E7%9B%91%E5%90%AC)|
0 commit comments