Skip to content

Commit b9922a2

Browse files
authored
Doc 11 (#664)
* add scaling link to user guide * doc updates. scaling and helm
1 parent b27f961 commit b9922a2

File tree

3 files changed

+70
-81
lines changed

3 files changed

+70
-81
lines changed

site/helm-charts.md

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Helm has two parts: a client (helm) and a server (tiller). Tiller runs inside of
1313
The operator Helm chart is pre-configured with default values for the configuration of the operator.
1414

1515
The user can override these values by doing one of the following:
16-
- create a custom YAML file with the only values to be overridden, and specify the --value option on the Helm command line
17-
- override individual values directly on the helm command line, using the --set option
16+
- create a custom YAML file with the only values to be overridden, and specify the `--value` option on the Helm command line
17+
- override individual values directly on the helm command line, using the `--set` option
1818

1919
The user can find out the configuration values that the Helm chart supports, as well as the default values, using this command:
2020
```
@@ -31,10 +31,10 @@ The operator can expose an external REST HTTPS interface which can be accessed f
3131

3232
To enable the external REST interface, configure these values in a custom configuration file, or on the Helm command line:
3333

34-
* set "externalRestEnabled" to true
35-
* set "externalOperatorCert" to the certificate's Base64 encoded PEM
36-
* set "externalOperatorKey" to the keys Base64 encoded PEM
37-
* optionally, set "externalRestHttpsPort" to the external port number for the operator REST interface (defaults to 31001)
34+
* set `externalRestEnabled` to true
35+
* set `externalOperatorCert` to the certificate's Base64 encoded PEM
36+
* set `externalOperatorKey` to the keys Base64 encoded PEM
37+
* optionally, set `externalRestHttpsPort` to the external port number for the operator REST interface (defaults to `31001`)
3838

3939
More detailed information about configuration values can be found in [Operator Helm configuration values](#operator-helm-configuration-values)
4040

@@ -59,23 +59,23 @@ The user is responsible for configuring Kibana and Elasticsearch, then configuri
5959

6060
As part of the ELK integration, Logstash configuration occurs for each deployed operator instance. The following configuration values can be used to configure the integration:
6161

62-
* set "elkIntegrationEnabled" is "true" to enable the integration
63-
* set "logStashImage" to override the default version of logstash to be used (logstash:6.2)
64-
* set "elasticSearchHost" and "elasticSearchPort" to override the default location where Elasticsearch is running (elasticsearch2.default.svc.cluster.local:9201). This will configure Logstash to send the operator's log contents there.
62+
* set `elkIntegrationEnabled` is `true` to enable the integration
63+
* set `logStashImage` to override the default version of logstash to be used (`logstash:6.2`)
64+
* set `elasticSearchHost` and `elasticSearchPort` to override the default location where Elasticsearch is running (`elasticsearch2.default.svc.cluster.local:9201`). This will configure Logstash to send the operator's log contents there.
6565

6666
More detailed information about configuration values can be found in [Operator Helm configuration values](#operator-helm-configuration-values)
6767

6868
## Install the Helm chart
6969

70-
The "helm install" command is used to install the operator Helm chart. As part of this, the user specifies a "release" name for their operator.
70+
The `helm install` command is used to install the operator Helm chart. As part of this, the user specifies a "release" name for their operator.
7171

7272
The user can override default configuration values in the operator Helm chart by doing one of the following:
73-
- create a custom YAML file containing the values to be overridden, and specify the --value option on the Helm command line
74-
- override individual values directly on the helm command line, using the --set option
73+
- create a custom YAML file containing the values to be overridden, and specify the `--value` option on the Helm command line
74+
- override individual values directly on the helm command line, using the `--set` option
7575

76-
The user supplies the "–namespace" argument from the "helm install" command line to specify the namespace in which the operator should be installed. If not specified, it defaults to "default". If the namespace does not already exist, Helm will automatically create it (and create a default service account in the new namespace), but will not remove it when the release is deleted. If the namespace already exists, Helm will re-use it. These are standard Helm behaviors.
76+
The user supplies the `–namespace` argument from the `helm install` command line to specify the namespace in which the operator should be installed. If not specified, it defaults to `default`. If the namespace does not already exist, Helm will automatically create it (and create a default service account in the new namespace), but will not remove it when the release is deleted. If the namespace already exists, Helm will re-use it. These are standard Helm behaviors.
7777

78-
Similarly, the user may override the default "serviceAccount" configuration value to specify which service account in the operator's namespace the operator should use. If not specified, it defaults to "default" (i.e. the namespace's default service account). If the user wants to use a different service account, then the user must create the operator's namespace and the service account before installing the operator Helm chart.
78+
Similarly, the user may override the default `serviceAccount` configuration value to specify which service account in the operator's namespace the operator should use. If not specified, it defaults to `default` (i.e. the namespace's default service account). If the user wants to use a different service account, then the user must create the operator's namespace and the service account before installing the operator Helm chart.
7979

8080
For example:
8181
```
@@ -90,20 +90,20 @@ helm install kubernetes/charts/weblogic-operator \
9090
--set "javaLoggingLevel:FINE" --wait
9191
```
9292

93-
This creates a Helm release, named "weblogic-operator" in the "weblogic-operator-namespace" namespace, and configures a deployment and supporting resources for the operator.
93+
This creates a Helm release, named `weblogic-operator` in the `weblogic-operator-namespace` namespace, and configures a deployment and supporting resources for the operator.
9494

95-
If "weblogic-operator-namespace" exists, it will be used. If it does not exist, then Helm will create it.
95+
If `weblogic-operator-namespace` exists, it will be used. If it does not exist, then Helm will create it.
9696

97-
You can verify the operator installation by examining the output from the "helm install" command.
97+
You can verify the operator installation by examining the output from the `helm install` command.
9898

9999
## Removing the Operator
100100

101-
The "helm delete" command is used to remove an operator release and its associated resources from the Kubernetes cluster. The release name used with the "helm delete" command is the same release name used with the "helm install" command (see [Install the Helm chart](#install-the-helm-chart)). For example:
101+
The `helm delete` command is used to remove an operator release and its associated resources from the Kubernetes cluster. The release name used with the `helm delete` command is the same release name used with the `helm install` command (see [Install the Helm chart](#install-the-helm-chart)). For example:
102102
```
103103
helm delete --purge weblogic-operator
104104
```
105105

106-
Note: if the operator's namespace did not exist before the Helm chart was installed, then Helm will create it, however, "helm delete" will not remove it.
106+
Note: if the operator's namespace did not exist before the Helm chart was installed, then Helm will create it, however, `helm delete` will not remove it.
107107

108108
## Useful Helm operations
109109

@@ -142,7 +142,7 @@ Roll back to a previous version of this operator Helm release, in this case the
142142
helm rollback weblogic-operator 1
143143
```
144144

145-
Change one or more values in the operator Helm release. In this example, the --reuse-values flag indicates that previous overrides of other values should be retained:
145+
Change one or more values in the operator Helm release. In this example, the `--reuse-values` flag indicates that previous overrides of other values should be retained:
146146
```
147147
helm upgrade \
148148
--reuse-values \
@@ -163,7 +163,7 @@ This section describes the details of the operator Helm chart's available config
163163

164164
Specifies the name of the service account in the operator's namespace that the operator will use to make requests to the Kubernetes API server. The user is responsible for creating the service account.
165165

166-
Defaults to "default".
166+
Defaults to `default`.
167167

168168
Example:
169169
```
@@ -174,7 +174,7 @@ serviceAccount: "weblogic-operator"
174174

175175
Specifies the level of Java logging that should be enabled in the operator. Valid values are: "SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "FINER", and "FINEST".
176176

177-
Defaults to "INFO"
177+
Defaults to `INFO`
178178

179179
Example:
180180
```
@@ -187,7 +187,7 @@ javaLoggingLevel: "FINE"
187187

188188
Specifies the Docker image containing the operator code.
189189

190-
Defaults to "weblogic-kubernetes-operator:2.0".
190+
Defaults to `weblogic-kubernetes-operator:2.0`.
191191

192192
Example:
193193
```
@@ -197,7 +197,7 @@ image: "weblogic-kubernetes-operator:LATEST"
197197
#### imagePullPolicy
198198
Specifies the image pull policy for the operator Docker image.
199199

200-
Defaults to "IfNotPresent"
200+
Defaults to `IfNotPresent`
201201

202202
Example:
203203
```
@@ -221,18 +221,18 @@ Specifies a list of WebLogic Domain namespaces which the operator manages. The n
221221

222222
This property is required.
223223

224-
Example 1: In the configuration below, the operator will monitor the "default" Kubernetes namespace:
224+
Example 1: In the configuration below, the operator will monitor the `default` Kubernetes namespace:
225225
```
226226
domainNamespaces:
227227
- "default"
228228
```
229229

230-
Example 2: In the configuration below, the Helm installation will manage "namespace1" and "namespace2":
230+
Example 2: In the configuration below, the Helm installation will manage `namespace1` and `namespace2`:
231231
```
232232
domainNamespaces: [ "namespace1", "namespace2" ]
233233
```
234234

235-
NOTE: one must include the "default" namespace in the list if you want the operator to monitor both the "default" namespace and some other namespaces.
235+
NOTE: one must include the `default` namespace in the list if you want the operator to monitor both the `default` namespace and some other namespaces.
236236

237237
NOTE: these examples show two valid YAML syntax options for arrays.
238238

@@ -251,19 +251,19 @@ elkIntegrationEnabled: true
251251

252252
#### logStashImage
253253

254-
Specifies the Docker image containing Logstash. This parameter is ignored if "elkIntegrationEnabled" is false.
254+
Specifies the Docker image containing Logstash. This parameter is ignored if `elkIntegrationEnabled` is false.
255255

256-
Defaults to "logstash:5"
256+
Defaults to `logstash:5`
257257

258258
Example:
259259
```
260260
logStashImage: "logstash:6.2"
261261
```
262262

263263
#### elasticSearchHost
264-
Specifies the hostname where Elasticsearch is running. This parameter is ignored if 'elkIntegrationEnabled' is false.
264+
Specifies the hostname where Elasticsearch is running. This parameter is ignored if `elkIntegrationEnabled` is false.
265265

266-
Defaults to "elasticsearch.default.svc.cluster.local"
266+
Defaults to `elasticsearch.default.svc.cluster.local`
267267

268268
Example:
269269
```
@@ -272,9 +272,9 @@ elasticSearchHost: "elasticsearch2.default.svc.cluster.local"
272272

273273
#### elasticSearchPort
274274

275-
Specifies the port number where Elasticsearch is running. This parameter is ignored if 'elkIntegrationEnabled' is false.
275+
Specifies the port number where Elasticsearch is running. This parameter is ignored if `elkIntegrationEnabled` is false.
276276

277-
Defaults to 9200.
277+
Defaults to `9200`.
278278

279279
Example:
280280
```
@@ -286,9 +286,9 @@ elasticSearchPort: 9201
286286
#### externalRestEnabled
287287
Determines whether the operator's REST interface will be exposed outside the Kubernetes cluster.
288288

289-
Defaults to false.
289+
Defaults to `false`.
290290

291-
If set to true, the user must provide the SSL certificate and private key for the operator's external REST interface by specifying the "externalOperatorCert" and "externalOperatorKey" properties.
291+
If set to true, the user must provide the SSL certificate and private key for the operator's external REST interface by specifying the `externalOperatorCert` and `externalOperatorKey` properties.
292292

293293
Example:
294294
```
@@ -298,9 +298,9 @@ externalRestEnabled: true
298298
#### externalRestHttpsPort
299299
Specifies node port that should be allocated for the external operator REST HTTPS interface.
300300

301-
Only used when externalRestEnabled is true, otherwise ignored.
301+
Only used when `externalRestEnabled` is `true`, otherwise ignored.
302302

303-
Defaults to 31001.
303+
Defaults to `31001`.
304304

305305
Example:
306306
```
@@ -309,11 +309,11 @@ externalRestHttpsPort: 32009
309309

310310
#### externalOperatorCert
311311

312-
Specifies the user supplied certificate to use for the external operator REST HTTPS interface. The value must be a string containing a Base64 encoded PEM certificate. This parameter is required if 'externalRestEnabled' is true, otherwise, it is ignored.
312+
Specifies the user supplied certificate to use for the external operator REST HTTPS interface. The value must be a string containing a Base64 encoded PEM certificate. This parameter is required if `externalRestEnabled` is true, otherwise, it is ignored.
313313

314314
There is no default value.
315315

316-
The helm installation will produce an error, similar to the following, if "externalOperatorCert" is not specified (left blank) and "externalRestEnabled" is true:
316+
The helm installation will produce an error, similar to the following, if `externalOperatorCert` is not specified (left blank) and `externalRestEnabled` is true:
317317
```
318318
Error: render error in "weblogic-operator/templates/main.yaml": template: weblogic-operator/templates/main.yaml:4:3: executing "weblogic-operator/templates/main.yaml"
319319
at <include "operator.va...>: error calling include: template: weblogic-operator/templates/_validate-inputs.tpl:53:4: executing "operator.validateInputs"
@@ -328,11 +328,11 @@ externalOperatorCert: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQwakNDQXJxZ0F3S
328328

329329
#### externalOperatorKey
330330

331-
Specifies user supplied private key to use for the external operator REST HTTPS interface. The value must be a string containing a Base64 encoded PEM key. This parameter is required if 'externalRestEnabled' is true, otherwise, it is ignored.
331+
Specifies user supplied private key to use for the external operator REST HTTPS interface. The value must be a string containing a Base64 encoded PEM key. This parameter is required if `externalRestEnabled` is `true`, otherwise, it is ignored.
332332

333333
There is no default value.
334334

335-
The helm installation will produce an error, similar to the following, if "externalOperatorKey" is not specified (left blank) and "externalRestEnabled" is true:
335+
The helm installation will produce an error, similar to the following, if `externalOperatorKey` is not specified (left blank) and `externalRestEnabled` is true:
336336
```
337337
Error: render error in "weblogic-operator/templates/main.yaml": template: weblogic-operator/templates/main.yaml:4:3: executing "weblogic-operator/templates/main.yaml"
338338
at <include "operator.va...>: error calling include: template: weblogic-operator/templates/_validate-inputs.tpl:53:4: executing "operator.validateInputs"
@@ -351,7 +351,7 @@ externalOperatorKey: QmFnIEF0dHJpYnV0ZXMKICAgIGZyaWVuZGx5TmFtZTogd2VibG9naWMtb3B
351351

352352
Specifies whether or not the operator will start a Java remote debug server on the provided port and suspend execution until a remote debugger has attached.
353353

354-
Defaults to false
354+
Defaults to `false`
355355

356356
Example:
357357
```
@@ -362,9 +362,9 @@ remoteDebugNodePortEnabled: true
362362

363363
Specifies the port number inside the Kubernetes cluster for the operator's Java remote debug server.
364364

365-
This parameter is required if "remoteDebugNodePortEnabled" is true. Otherwise, it is ignored.
365+
This parameter is required if `remoteDebugNodePortEnabled` is `true`. Otherwise, it is ignored.
366366

367-
Defaults to 30999
367+
Defaults to `30999`
368368

369369
Example:
370370
```
@@ -375,9 +375,9 @@ internalDebugHttpPort: 30888
375375

376376
Specifies the node port that should be allocated for the Kubernetes cluster for the operator's Java remote debug server.
377377

378-
This parameter is required if "remoteDebugNodePortEnabled" is true. Otherwise, it is ignored.
378+
This parameter is required if `remoteDebugNodePortEnabled` is `true`. Otherwise, it is ignored.
379379

380-
Defaults to 30999
380+
Defaults to `30999`
381381

382382
Example:
383383
```
@@ -416,9 +416,9 @@ Error: release op2 failed: rolebindings.rbac.authorization.k8s.io "weblogic-oper
416416
```
417417

418418
To recover:
419-
- helm delete --purge the failed release
419+
- `helm delete --purge` the failed release
420420
- note: this deletes the role binding in the domain namespace that was created by the first operator release to give the operator access to the domain namespace
421-
- helm upgrade <old op release> kubernetes/charts/weblogic-operator --values <old op custom-values.yaml>
421+
- `helm upgrade <old op release> kubernetes/charts/weblogic-operator --values <old op custom-values.yaml>`
422422
- this recreates the role binding
423423
- there might be intermittent failures in the operator for the period of time when the role binding was deleted
424424

@@ -443,8 +443,8 @@ Error: release op2 failed: Service "external-weblogic-operator-svc" is invalid:
443443
```
444444

445445
To recover:
446-
- helm delete --purge the failed release
447-
- change the port # and helm install the second operator again
446+
- `helm delete --purge` the failed release
447+
- change the port number and `helm install` the second operator again
448448

449449
### Upgrade an operator and tell it to use the same external REST port number as another operator
450450

@@ -471,9 +471,9 @@ kubectl log -n kube-system tiller-deploy-f9b8476d-mht6v
471471
```
472472

473473
To recover:
474-
- helm delete --purge the failed release
474+
- `helm delete --purge` the failed release
475475
- create the service account
476-
- helm install again
476+
- `helm install` again
477477

478478
### Upgrade an operator and tell it to use a service account that doesn't exist
479479

@@ -490,8 +490,8 @@ type: ReplicaFailure
490490

491491
To recover:
492492
- create the service account
493-
- helm rollback
494-
- helm upgrade again
493+
- `helm rollback`
494+
- `helm upgrade` again
495495

496496
### Install an operator and tell it to manage a domain namespace that doesn't exist
497497

@@ -502,9 +502,9 @@ Error: release op2 failed: namespaces "myuser-d2-ns" not found
502502
```
503503

504504
To recover
505-
- helm delete --purge the failed release
505+
- `helm delete --purge` the failed release
506506
- create the domain namespace
507-
- helm install again
507+
- `helm install` again
508508

509509
### Upgrade an operator and tell it to manage a domain namespace that doesn't exist
510510

@@ -514,6 +514,6 @@ helm upgrade myuser-op kubernetes/charts/weblogic-operator --values o.yaml --no-
514514
Error: UPGRADE FAILED: failed to create resource: namespaces "myuser-d2-ns" not found
515515
```
516516
To recover:
517-
- helm rollback
517+
- `helm rollback`
518518
- create the domain namespace
519-
- helm upgrade again
519+
- `helm upgrade` again

0 commit comments

Comments
 (0)