Skip to content

Commit 3c63ca3

Browse files
authored
Merge pull request #1171 from oracle/affinity
Affinity and scheduling related serverPod schema elements
2 parents 3e466ba + 813b317 commit 3c63ca3

File tree

44 files changed

+2479
-1622
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2479
-1622
lines changed

docs/charts/index.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
apiVersion: v1
22
entries:
33
weblogic-operator:
4-
- created: 2019-06-21T17:07:47.254382-04:00
4+
- created: "2019-07-25T14:26:55.411022-04:00"
55
description: Helm chart for configuring the WebLogic operator.
6-
digest: 0af0ca39bf33b38d82a22a21c32e1cb3da3f78d841ba2c4cfaa4c0e743d3b9b3
6+
digest: 755825da5adcc30f57bca540509813aeb8d73ddd69d85e4f30b29d73696e2ee8
77
name: weblogic-operator
88
urls:
99
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.3.0.tgz
1010
version: 2.3.0
11-
- created: 2019-06-21T17:07:47.252194-04:00
11+
- created: "2019-07-25T14:26:55.408716-04:00"
1212
description: Helm chart for configuring the WebLogic operator.
1313
digest: 23d5a1c554fa8211cc1e86b7ade09460917cb2069e68fb4bfdddafc8db44fdcd
1414
name: weblogic-operator
1515
urls:
1616
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.2.1.tgz
1717
version: 2.2.1
18-
- created: 2019-06-21T17:07:47.250143-04:00
18+
- created: "2019-07-25T14:26:55.407036-04:00"
1919
description: Helm chart for configuring the WebLogic operator.
2020
digest: bba303686cb55d84fe8c0d693a2436e7e686b028085b56e012f6381699a3911f
2121
name: weblogic-operator
2222
urls:
2323
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.2.0.tgz
2424
version: 2.2.0
25-
- created: 2019-06-21T17:07:47.246971-04:00
25+
- created: "2019-07-25T14:26:55.405384-04:00"
2626
description: Helm chart for configuring the WebLogic operator.
2727
digest: 391e23c0969ada5f0cd2a088ddc6f11f237f57521801ed3925db2149a8437a0d
2828
name: weblogic-operator
2929
urls:
3030
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.1.tgz
3131
version: "2.1"
32-
- created: 2019-06-21T17:07:47.245138-04:00
32+
- created: "2019-07-25T14:26:55.403824-04:00"
3333
description: Helm chart for configuring the WebLogic operator.
3434
digest: 298acda78ab73db6b7ba6f2752311bfa40c65874e03fb196b70976192211c1a5
3535
name: weblogic-operator
3636
urls:
3737
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.0.1.tgz
3838
version: 2.0.1
39-
generated: 2019-06-21T17:07:47.24317-04:00
39+
generated: "2019-07-25T14:26:55.401818-04:00"
111 Bytes
Binary file not shown.

docs/domains/Domain.json

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,18 +298,18 @@
298298
"description": "If true (the default), the server .out file will be included in the pod\u0027s stdout.",
299299
"type": "boolean"
300300
},
301-
"clusters": {
302-
"description": "Configuration for the clusters.",
301+
"managedServers": {
302+
"description": "Configuration for individual Managed Servers.",
303303
"type": "array",
304304
"items": {
305-
"$ref": "#/definitions/Cluster"
305+
"$ref": "#/definitions/ManagedServer"
306306
}
307307
},
308-
"managedServers": {
309-
"description": "Configuration for individual Managed Servers.",
308+
"clusters": {
309+
"description": "Configuration for the clusters.",
310310
"type": "array",
311311
"items": {
312-
"$ref": "#/definitions/ManagedServer"
312+
"$ref": "#/definitions/Cluster"
313313
}
314314
}
315315
}
@@ -458,14 +458,29 @@
458458
"description": "ServerPod describes the configuration for a Kubernetes pod for a server.",
459459
"type": "object",
460460
"properties": {
461+
"nodeName": {
462+
"description": "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.",
463+
"type": "string"
464+
},
461465
"livenessProbe": {
462466
"description": "Settings for the liveness probe associated with a server.",
463467
"$ref": "#/definitions/ProbeTuning"
464468
},
469+
"readinessGates": {
470+
"description": "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://github.com/kubernetes/community/blob/master/keps/sig-network/0007-pod-ready%2B%2B.md",
471+
"type": "array",
472+
"items": {
473+
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.13.5/_definitions.json#/definitions/io.k8s.api.core.v1.PodReadinessGate"
474+
}
475+
},
465476
"podSecurityContext": {
466477
"description": "Pod-level security attributes.",
467478
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.13.5/_definitions.json#/definitions/io.k8s.api.core.v1.PodSecurityContext"
468479
},
480+
"priorityClassName": {
481+
"description": "If specified, indicates the pod\u0027s priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.",
482+
"type": "string"
483+
},
469484
"volumes": {
470485
"description": "Additional volumes to be created in the server pod.",
471486
"type": "array",
@@ -488,6 +503,10 @@
488503
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.13.5/_definitions.json#/definitions/io.k8s.api.core.v1.EnvVar"
489504
}
490505
},
506+
"restartPolicy": {
507+
"description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy",
508+
"type": "string"
509+
},
491510
"nodeSelector": {
492511
"description": "Selector which must match a node\u0027s labels for the pod to be scheduled on that node.",
493512
"$ref": "#/definitions/Map"
@@ -503,6 +522,17 @@
503522
"description": "The labels to be attached to generated resources. The label names must not start with \u0027weblogic.\u0027.",
504523
"$ref": "#/definitions/Map"
505524
},
525+
"runtimeClassName": {
526+
"description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://github.com/kubernetes/community/blob/master/keps/sig-node/0014-runtime-class.md This is an alpha feature and may change in the future.",
527+
"type": "string"
528+
},
529+
"tolerations": {
530+
"description": "If specified, the pod\u0027s tolerations.",
531+
"type": "array",
532+
"items": {
533+
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.13.5/_definitions.json#/definitions/io.k8s.api.core.v1.Toleration"
534+
}
535+
},
506536
"readinessProbe": {
507537
"description": "Settings for the readiness probe associated with a server.",
508538
"$ref": "#/definitions/ProbeTuning"
@@ -518,6 +548,10 @@
518548
"description": "Container-level security attributes. Will override any matching pod-level attributes.",
519549
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.13.5/_definitions.json#/definitions/io.k8s.api.core.v1.SecurityContext"
520550
},
551+
"schedulerName": {
552+
"description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.",
553+
"type": "string"
554+
},
521555
"initContainers": {
522556
"description": "Initialization containers to be included in the server pod.",
523557
"type": "array",
@@ -528,6 +562,10 @@
528562
"shutdown": {
529563
"description": "Configures how the operator should shutdown the server instance.",
530564
"$ref": "#/definitions/Shutdown"
565+
},
566+
"affinity": {
567+
"description": "If specified, the pod\u0027s scheduling constraints",
568+
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.13.5/_definitions.json#/definitions/io.k8s.api.core.v1.Affinity"
531569
}
532570
}
533571
},

docs/domains/Domain.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,26 @@ ServerPod describes the configuration for a Kubernetes pod for a server.
100100

101101
| Name | Type | Description |
102102
| --- | --- | --- |
103+
| `affinity` | [Affinity](k8s1.13.5.md#affinity) | If specified, the pod's scheduling constraints |
103104
| `annotations` | Map | The annotations to be attached to generated resources. |
104105
| `containers` | array of [Container](k8s1.13.5.md#container) | Additional containers to be included in the server pod. |
105106
| `containerSecurityContext` | [Security Context](k8s1.13.5.md#security-context) | Container-level security attributes. Will override any matching pod-level attributes. |
106107
| `env` | array of [Env Var](k8s1.13.5.md#env-var) | A list of environment variables to add to a server. |
107108
| `initContainers` | array of [Container](k8s1.13.5.md#container) | Initialization containers to be included in the server pod. |
108109
| `labels` | Map | The labels to be attached to generated resources. The label names must not start with 'weblogic.'. |
109110
| `livenessProbe` | [Probe Tuning](#probe-tuning) | Settings for the liveness probe associated with a server. |
111+
| `nodeName` | string | NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. |
110112
| `nodeSelector` | Map | Selector which must match a node's labels for the pod to be scheduled on that node. |
111113
| `podSecurityContext` | [Pod Security Context](k8s1.13.5.md#pod-security-context) | Pod-level security attributes. |
114+
| `priorityClassName` | string | If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. |
115+
| `readinessGates` | array of [Pod Readiness Gate](k8s1.13.5.md#pod-readiness-gate) | If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://github.com/kubernetes/community/blob/master/keps/sig-network/0007-pod-ready%2B%2B.md |
112116
| `readinessProbe` | [Probe Tuning](#probe-tuning) | Settings for the readiness probe associated with a server. |
113117
| `resources` | [Resource Requirements](k8s1.13.5.md#resource-requirements) | Memory and CPU minimum requirements and limits for the server. |
118+
| `restartPolicy` | string | Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy |
119+
| `runtimeClassName` | string | RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://github.com/kubernetes/community/blob/master/keps/sig-node/0014-runtime-class.md This is an alpha feature and may change in the future. |
120+
| `schedulerName` | string | If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. |
114121
| `shutdown` | [Shutdown](#shutdown) | Configures how the operator should shutdown the server instance. |
122+
| `tolerations` | array of [Toleration](k8s1.13.5.md#toleration) | If specified, the pod's tolerations. |
115123
| `volumeMounts` | array of [Volume Mount](k8s1.13.5.md#volume-mount) | Additional volume mounts for the server pod. |
116124
| `volumes` | array of [Volume](k8s1.13.5.md#volume) | Additional volumes to be created in the server pod. |
117125

docs/domains/index.html

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,18 +1218,18 @@
12181218
"description": "If true (the default), the server .out file will be included in the pod\u0027s stdout.",
12191219
"type": "boolean"
12201220
},
1221-
"clusters": {
1222-
"description": "Configuration for the clusters.",
1221+
"managedServers": {
1222+
"description": "Configuration for individual Managed Servers.",
12231223
"type": "array",
12241224
"items": {
1225-
"$ref": "#/definitions/Cluster"
1225+
"$ref": "#/definitions/ManagedServer"
12261226
}
12271227
},
1228-
"managedServers": {
1229-
"description": "Configuration for individual Managed Servers.",
1228+
"clusters": {
1229+
"description": "Configuration for the clusters.",
12301230
"type": "array",
12311231
"items": {
1232-
"$ref": "#/definitions/ManagedServer"
1232+
"$ref": "#/definitions/Cluster"
12331233
}
12341234
}
12351235
}
@@ -1378,14 +1378,29 @@
13781378
"description": "ServerPod describes the configuration for a Kubernetes pod for a server.",
13791379
"type": "object",
13801380
"properties": {
1381+
"nodeName": {
1382+
"description": "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.",
1383+
"type": "string"
1384+
},
13811385
"livenessProbe": {
13821386
"description": "Settings for the liveness probe associated with a server.",
13831387
"$ref": "#/definitions/ProbeTuning"
13841388
},
1389+
"readinessGates": {
1390+
"description": "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://github.com/kubernetes/community/blob/master/keps/sig-network/0007-pod-ready%2B%2B.md",
1391+
"type": "array",
1392+
"items": {
1393+
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.13.5/_definitions.json#/definitions/io.k8s.api.core.v1.PodReadinessGate"
1394+
}
1395+
},
13851396
"podSecurityContext": {
13861397
"description": "Pod-level security attributes.",
13871398
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.13.5/_definitions.json#/definitions/io.k8s.api.core.v1.PodSecurityContext"
13881399
},
1400+
"priorityClassName": {
1401+
"description": "If specified, indicates the pod\u0027s priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.",
1402+
"type": "string"
1403+
},
13891404
"volumes": {
13901405
"description": "Additional volumes to be created in the server pod.",
13911406
"type": "array",
@@ -1408,6 +1423,10 @@
14081423
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.13.5/_definitions.json#/definitions/io.k8s.api.core.v1.EnvVar"
14091424
}
14101425
},
1426+
"restartPolicy": {
1427+
"description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy",
1428+
"type": "string"
1429+
},
14111430
"nodeSelector": {
14121431
"description": "Selector which must match a node\u0027s labels for the pod to be scheduled on that node.",
14131432
"$ref": "#/definitions/Map"
@@ -1423,6 +1442,17 @@
14231442
"description": "The labels to be attached to generated resources. The label names must not start with \u0027weblogic.\u0027.",
14241443
"$ref": "#/definitions/Map"
14251444
},
1445+
"runtimeClassName": {
1446+
"description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://github.com/kubernetes/community/blob/master/keps/sig-node/0014-runtime-class.md This is an alpha feature and may change in the future.",
1447+
"type": "string"
1448+
},
1449+
"tolerations": {
1450+
"description": "If specified, the pod\u0027s tolerations.",
1451+
"type": "array",
1452+
"items": {
1453+
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.13.5/_definitions.json#/definitions/io.k8s.api.core.v1.Toleration"
1454+
}
1455+
},
14261456
"readinessProbe": {
14271457
"description": "Settings for the readiness probe associated with a server.",
14281458
"$ref": "#/definitions/ProbeTuning"
@@ -1438,6 +1468,10 @@
14381468
"description": "Container-level security attributes. Will override any matching pod-level attributes.",
14391469
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.13.5/_definitions.json#/definitions/io.k8s.api.core.v1.SecurityContext"
14401470
},
1471+
"schedulerName": {
1472+
"description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.",
1473+
"type": "string"
1474+
},
14411475
"initContainers": {
14421476
"description": "Initialization containers to be included in the server pod.",
14431477
"type": "array",
@@ -1448,6 +1482,10 @@
14481482
"shutdown": {
14491483
"description": "Configures how the operator should shutdown the server instance.",
14501484
"$ref": "#/definitions/Shutdown"
1485+
},
1486+
"affinity": {
1487+
"description": "If specified, the pod\u0027s scheduling constraints",
1488+
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.13.5/_definitions.json#/definitions/io.k8s.api.core.v1.Affinity"
14511489
}
14521490
}
14531491
},

0 commit comments

Comments
 (0)