cdk8s-plus-31 2.1.17 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +220 -186
- package/docs/java.md +234 -0
- package/docs/plus/service.md +1 -1
- package/docs/python.md +234 -0
- package/docs/typescript.md +130 -0
- package/lib/api-resource.js +2 -2
- package/lib/base.js +2 -2
- package/lib/config-map.js +1 -1
- package/lib/container.js +6 -6
- package/lib/cron-job.js +1 -1
- package/lib/daemon-set.js +1 -1
- package/lib/deployment.js +3 -3
- package/lib/handler.js +1 -1
- package/lib/horizontal-pod-autoscaler.js +4 -4
- package/lib/imports/k8s.js +154 -154
- package/lib/ingress.js +2 -2
- package/lib/job.js +1 -1
- package/lib/namespace.js +2 -2
- package/lib/network-policy.js +3 -3
- package/lib/pod.d.ts +9 -0
- package/lib/pod.js +19 -17
- package/lib/probe.js +1 -1
- package/lib/pv.js +4 -4
- package/lib/pvc.js +1 -1
- package/lib/role-binding.js +4 -4
- package/lib/role.js +2 -2
- package/lib/secret.js +6 -6
- package/lib/service-account.js +1 -1
- package/lib/service.js +1 -1
- package/lib/stateful-set.js +2 -2
- package/lib/volume.js +1 -1
- package/lib/workload.js +2 -2
- package/package.json +1 -1
package/docs/java.md
CHANGED
|
@@ -17,6 +17,7 @@ AbstractPod.Builder.create(Construct scope, java.lang.String id)
|
|
|
17
17
|
// .containers(java.util.List<ContainerProps>)
|
|
18
18
|
// .dns(PodDnsProps)
|
|
19
19
|
// .dockerRegistryAuth(ISecret)
|
|
20
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
20
21
|
// .hostAliases(java.util.List<HostAlias>)
|
|
21
22
|
// .hostNetwork(java.lang.Boolean)
|
|
22
23
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -96,6 +97,17 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
96
97
|
|
|
97
98
|
---
|
|
98
99
|
|
|
100
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.AbstractPodProps.parameter.enableServiceLinks"></a>
|
|
101
|
+
|
|
102
|
+
- *Type:* `java.lang.Boolean`
|
|
103
|
+
- *Default:* true
|
|
104
|
+
|
|
105
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
106
|
+
|
|
107
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
99
111
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.AbstractPodProps.parameter.hostAliases"></a>
|
|
100
112
|
|
|
101
113
|
- *Type:* java.util.List<[`org.cdk8s.plus31.HostAlias`](#org.cdk8s.plus31.HostAlias)>
|
|
@@ -407,6 +419,16 @@ public ISecret getDockerRegistryAuth();
|
|
|
407
419
|
|
|
408
420
|
---
|
|
409
421
|
|
|
422
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.AbstractPod.property.enableServiceLinks"></a>
|
|
423
|
+
|
|
424
|
+
```java
|
|
425
|
+
public java.lang.Boolean getEnableServiceLinks();
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
- *Type:* `java.lang.Boolean`
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
410
432
|
##### `hostNetwork`<sup>Optional</sup> <a name="org.cdk8s.plus31.AbstractPod.property.hostNetwork"></a>
|
|
411
433
|
|
|
412
434
|
```java
|
|
@@ -1708,6 +1730,7 @@ CronJob.Builder.create(Construct scope, java.lang.String id)
|
|
|
1708
1730
|
// .containers(java.util.List<ContainerProps>)
|
|
1709
1731
|
// .dns(PodDnsProps)
|
|
1710
1732
|
// .dockerRegistryAuth(ISecret)
|
|
1733
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
1711
1734
|
// .hostAliases(java.util.List<HostAlias>)
|
|
1712
1735
|
// .hostNetwork(java.lang.Boolean)
|
|
1713
1736
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -1800,6 +1823,17 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
1800
1823
|
|
|
1801
1824
|
---
|
|
1802
1825
|
|
|
1826
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.CronJobProps.parameter.enableServiceLinks"></a>
|
|
1827
|
+
|
|
1828
|
+
- *Type:* `java.lang.Boolean`
|
|
1829
|
+
- *Default:* true
|
|
1830
|
+
|
|
1831
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
1832
|
+
|
|
1833
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
1834
|
+
|
|
1835
|
+
---
|
|
1836
|
+
|
|
1803
1837
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.CronJobProps.parameter.hostAliases"></a>
|
|
1804
1838
|
|
|
1805
1839
|
- *Type:* java.util.List<[`org.cdk8s.plus31.HostAlias`](#org.cdk8s.plus31.HostAlias)>
|
|
@@ -2210,6 +2244,7 @@ DaemonSet.Builder.create(Construct scope, java.lang.String id)
|
|
|
2210
2244
|
// .containers(java.util.List<ContainerProps>)
|
|
2211
2245
|
// .dns(PodDnsProps)
|
|
2212
2246
|
// .dockerRegistryAuth(ISecret)
|
|
2247
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
2213
2248
|
// .hostAliases(java.util.List<HostAlias>)
|
|
2214
2249
|
// .hostNetwork(java.lang.Boolean)
|
|
2215
2250
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -2293,6 +2328,17 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
2293
2328
|
|
|
2294
2329
|
---
|
|
2295
2330
|
|
|
2331
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.DaemonSetProps.parameter.enableServiceLinks"></a>
|
|
2332
|
+
|
|
2333
|
+
- *Type:* `java.lang.Boolean`
|
|
2334
|
+
- *Default:* true
|
|
2335
|
+
|
|
2336
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
2337
|
+
|
|
2338
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
2339
|
+
|
|
2340
|
+
---
|
|
2341
|
+
|
|
2296
2342
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.DaemonSetProps.parameter.hostAliases"></a>
|
|
2297
2343
|
|
|
2298
2344
|
- *Type:* java.util.List<[`org.cdk8s.plus31.HostAlias`](#org.cdk8s.plus31.HostAlias)>
|
|
@@ -2521,6 +2567,7 @@ Deployment.Builder.create(Construct scope, java.lang.String id)
|
|
|
2521
2567
|
// .containers(java.util.List<ContainerProps>)
|
|
2522
2568
|
// .dns(PodDnsProps)
|
|
2523
2569
|
// .dockerRegistryAuth(ISecret)
|
|
2570
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
2524
2571
|
// .hostAliases(java.util.List<HostAlias>)
|
|
2525
2572
|
// .hostNetwork(java.lang.Boolean)
|
|
2526
2573
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -2607,6 +2654,17 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
2607
2654
|
|
|
2608
2655
|
---
|
|
2609
2656
|
|
|
2657
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.DeploymentProps.parameter.enableServiceLinks"></a>
|
|
2658
|
+
|
|
2659
|
+
- *Type:* `java.lang.Boolean`
|
|
2660
|
+
- *Default:* true
|
|
2661
|
+
|
|
2662
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
2663
|
+
|
|
2664
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
2665
|
+
|
|
2666
|
+
---
|
|
2667
|
+
|
|
2610
2668
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.DeploymentProps.parameter.hostAliases"></a>
|
|
2611
2669
|
|
|
2612
2670
|
- *Type:* java.util.List<[`org.cdk8s.plus31.HostAlias`](#org.cdk8s.plus31.HostAlias)>
|
|
@@ -3786,6 +3844,7 @@ Job.Builder.create(Construct scope, java.lang.String id)
|
|
|
3786
3844
|
// .containers(java.util.List<ContainerProps>)
|
|
3787
3845
|
// .dns(PodDnsProps)
|
|
3788
3846
|
// .dockerRegistryAuth(ISecret)
|
|
3847
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
3789
3848
|
// .hostAliases(java.util.List<HostAlias>)
|
|
3790
3849
|
// .hostNetwork(java.lang.Boolean)
|
|
3791
3850
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -3871,6 +3930,17 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
3871
3930
|
|
|
3872
3931
|
---
|
|
3873
3932
|
|
|
3933
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.JobProps.parameter.enableServiceLinks"></a>
|
|
3934
|
+
|
|
3935
|
+
- *Type:* `java.lang.Boolean`
|
|
3936
|
+
- *Default:* true
|
|
3937
|
+
|
|
3938
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
3939
|
+
|
|
3940
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
3941
|
+
|
|
3942
|
+
---
|
|
3943
|
+
|
|
3874
3944
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.JobProps.parameter.hostAliases"></a>
|
|
3875
3945
|
|
|
3876
3946
|
- *Type:* java.util.List<[`org.cdk8s.plus31.HostAlias`](#org.cdk8s.plus31.HostAlias)>
|
|
@@ -5160,6 +5230,7 @@ Pod.Builder.create(Construct scope, java.lang.String id)
|
|
|
5160
5230
|
// .containers(java.util.List<ContainerProps>)
|
|
5161
5231
|
// .dns(PodDnsProps)
|
|
5162
5232
|
// .dockerRegistryAuth(ISecret)
|
|
5233
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
5163
5234
|
// .hostAliases(java.util.List<HostAlias>)
|
|
5164
5235
|
// .hostNetwork(java.lang.Boolean)
|
|
5165
5236
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -5239,6 +5310,17 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
5239
5310
|
|
|
5240
5311
|
---
|
|
5241
5312
|
|
|
5313
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.PodProps.parameter.enableServiceLinks"></a>
|
|
5314
|
+
|
|
5315
|
+
- *Type:* `java.lang.Boolean`
|
|
5316
|
+
- *Default:* true
|
|
5317
|
+
|
|
5318
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
5319
|
+
|
|
5320
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
5321
|
+
|
|
5322
|
+
---
|
|
5323
|
+
|
|
5242
5324
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.PodProps.parameter.hostAliases"></a>
|
|
5243
5325
|
|
|
5244
5326
|
- *Type:* java.util.List<[`org.cdk8s.plus31.HostAlias`](#org.cdk8s.plus31.HostAlias)>
|
|
@@ -6897,6 +6979,7 @@ StatefulSet.Builder.create(Construct scope, java.lang.String id)
|
|
|
6897
6979
|
// .containers(java.util.List<ContainerProps>)
|
|
6898
6980
|
// .dns(PodDnsProps)
|
|
6899
6981
|
// .dockerRegistryAuth(ISecret)
|
|
6982
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
6900
6983
|
// .hostAliases(java.util.List<HostAlias>)
|
|
6901
6984
|
// .hostNetwork(java.lang.Boolean)
|
|
6902
6985
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -6984,6 +7067,17 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
6984
7067
|
|
|
6985
7068
|
---
|
|
6986
7069
|
|
|
7070
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.StatefulSetProps.parameter.enableServiceLinks"></a>
|
|
7071
|
+
|
|
7072
|
+
- *Type:* `java.lang.Boolean`
|
|
7073
|
+
- *Default:* true
|
|
7074
|
+
|
|
7075
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
7076
|
+
|
|
7077
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
7078
|
+
|
|
7079
|
+
---
|
|
7080
|
+
|
|
6987
7081
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.StatefulSetProps.parameter.hostAliases"></a>
|
|
6988
7082
|
|
|
6989
7083
|
- *Type:* java.util.List<[`org.cdk8s.plus31.HostAlias`](#org.cdk8s.plus31.HostAlias)>
|
|
@@ -7858,6 +7952,7 @@ Workload.Builder.create(Construct scope, java.lang.String id)
|
|
|
7858
7952
|
// .containers(java.util.List<ContainerProps>)
|
|
7859
7953
|
// .dns(PodDnsProps)
|
|
7860
7954
|
// .dockerRegistryAuth(ISecret)
|
|
7955
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
7861
7956
|
// .hostAliases(java.util.List<HostAlias>)
|
|
7862
7957
|
// .hostNetwork(java.lang.Boolean)
|
|
7863
7958
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -7940,6 +8035,17 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
7940
8035
|
|
|
7941
8036
|
---
|
|
7942
8037
|
|
|
8038
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.WorkloadProps.parameter.enableServiceLinks"></a>
|
|
8039
|
+
|
|
8040
|
+
- *Type:* `java.lang.Boolean`
|
|
8041
|
+
- *Default:* true
|
|
8042
|
+
|
|
8043
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
8044
|
+
|
|
8045
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
8046
|
+
|
|
8047
|
+
---
|
|
8048
|
+
|
|
7943
8049
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.WorkloadProps.parameter.hostAliases"></a>
|
|
7944
8050
|
|
|
7945
8051
|
- *Type:* java.util.List<[`org.cdk8s.plus31.HostAlias`](#org.cdk8s.plus31.HostAlias)>
|
|
@@ -8188,6 +8294,7 @@ AbstractPodProps.builder()
|
|
|
8188
8294
|
// .containers(java.util.List<ContainerProps>)
|
|
8189
8295
|
// .dns(PodDnsProps)
|
|
8190
8296
|
// .dockerRegistryAuth(ISecret)
|
|
8297
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
8191
8298
|
// .hostAliases(java.util.List<HostAlias>)
|
|
8192
8299
|
// .hostNetwork(java.lang.Boolean)
|
|
8193
8300
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -8275,6 +8382,21 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
8275
8382
|
|
|
8276
8383
|
---
|
|
8277
8384
|
|
|
8385
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.AbstractPodProps.property.enableServiceLinks"></a>
|
|
8386
|
+
|
|
8387
|
+
```java
|
|
8388
|
+
public java.lang.Boolean getEnableServiceLinks();
|
|
8389
|
+
```
|
|
8390
|
+
|
|
8391
|
+
- *Type:* `java.lang.Boolean`
|
|
8392
|
+
- *Default:* true
|
|
8393
|
+
|
|
8394
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
8395
|
+
|
|
8396
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
8397
|
+
|
|
8398
|
+
---
|
|
8399
|
+
|
|
8278
8400
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.AbstractPodProps.property.hostAliases"></a>
|
|
8279
8401
|
|
|
8280
8402
|
```java
|
|
@@ -10779,6 +10901,7 @@ CronJobProps.builder()
|
|
|
10779
10901
|
// .containers(java.util.List<ContainerProps>)
|
|
10780
10902
|
// .dns(PodDnsProps)
|
|
10781
10903
|
// .dockerRegistryAuth(ISecret)
|
|
10904
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
10782
10905
|
// .hostAliases(java.util.List<HostAlias>)
|
|
10783
10906
|
// .hostNetwork(java.lang.Boolean)
|
|
10784
10907
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -10879,6 +11002,21 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
10879
11002
|
|
|
10880
11003
|
---
|
|
10881
11004
|
|
|
11005
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.CronJobProps.property.enableServiceLinks"></a>
|
|
11006
|
+
|
|
11007
|
+
```java
|
|
11008
|
+
public java.lang.Boolean getEnableServiceLinks();
|
|
11009
|
+
```
|
|
11010
|
+
|
|
11011
|
+
- *Type:* `java.lang.Boolean`
|
|
11012
|
+
- *Default:* true
|
|
11013
|
+
|
|
11014
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
11015
|
+
|
|
11016
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
11017
|
+
|
|
11018
|
+
---
|
|
11019
|
+
|
|
10882
11020
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.CronJobProps.property.hostAliases"></a>
|
|
10883
11021
|
|
|
10884
11022
|
```java
|
|
@@ -11337,6 +11475,7 @@ DaemonSetProps.builder()
|
|
|
11337
11475
|
// .containers(java.util.List<ContainerProps>)
|
|
11338
11476
|
// .dns(PodDnsProps)
|
|
11339
11477
|
// .dockerRegistryAuth(ISecret)
|
|
11478
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
11340
11479
|
// .hostAliases(java.util.List<HostAlias>)
|
|
11341
11480
|
// .hostNetwork(java.lang.Boolean)
|
|
11342
11481
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -11428,6 +11567,21 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
11428
11567
|
|
|
11429
11568
|
---
|
|
11430
11569
|
|
|
11570
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.DaemonSetProps.property.enableServiceLinks"></a>
|
|
11571
|
+
|
|
11572
|
+
```java
|
|
11573
|
+
public java.lang.Boolean getEnableServiceLinks();
|
|
11574
|
+
```
|
|
11575
|
+
|
|
11576
|
+
- *Type:* `java.lang.Boolean`
|
|
11577
|
+
- *Default:* true
|
|
11578
|
+
|
|
11579
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
11580
|
+
|
|
11581
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
11582
|
+
|
|
11583
|
+
---
|
|
11584
|
+
|
|
11431
11585
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.DaemonSetProps.property.hostAliases"></a>
|
|
11432
11586
|
|
|
11433
11587
|
```java
|
|
@@ -11719,6 +11873,7 @@ DeploymentProps.builder()
|
|
|
11719
11873
|
// .containers(java.util.List<ContainerProps>)
|
|
11720
11874
|
// .dns(PodDnsProps)
|
|
11721
11875
|
// .dockerRegistryAuth(ISecret)
|
|
11876
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
11722
11877
|
// .hostAliases(java.util.List<HostAlias>)
|
|
11723
11878
|
// .hostNetwork(java.lang.Boolean)
|
|
11724
11879
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -11813,6 +11968,21 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
11813
11968
|
|
|
11814
11969
|
---
|
|
11815
11970
|
|
|
11971
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.DeploymentProps.property.enableServiceLinks"></a>
|
|
11972
|
+
|
|
11973
|
+
```java
|
|
11974
|
+
public java.lang.Boolean getEnableServiceLinks();
|
|
11975
|
+
```
|
|
11976
|
+
|
|
11977
|
+
- *Type:* `java.lang.Boolean`
|
|
11978
|
+
- *Default:* true
|
|
11979
|
+
|
|
11980
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
11981
|
+
|
|
11982
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
11983
|
+
|
|
11984
|
+
---
|
|
11985
|
+
|
|
11816
11986
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.DeploymentProps.property.hostAliases"></a>
|
|
11817
11987
|
|
|
11818
11988
|
```java
|
|
@@ -13574,6 +13744,7 @@ JobProps.builder()
|
|
|
13574
13744
|
// .containers(java.util.List<ContainerProps>)
|
|
13575
13745
|
// .dns(PodDnsProps)
|
|
13576
13746
|
// .dockerRegistryAuth(ISecret)
|
|
13747
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
13577
13748
|
// .hostAliases(java.util.List<HostAlias>)
|
|
13578
13749
|
// .hostNetwork(java.lang.Boolean)
|
|
13579
13750
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -13667,6 +13838,21 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
13667
13838
|
|
|
13668
13839
|
---
|
|
13669
13840
|
|
|
13841
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.JobProps.property.enableServiceLinks"></a>
|
|
13842
|
+
|
|
13843
|
+
```java
|
|
13844
|
+
public java.lang.Boolean getEnableServiceLinks();
|
|
13845
|
+
```
|
|
13846
|
+
|
|
13847
|
+
- *Type:* `java.lang.Boolean`
|
|
13848
|
+
- *Default:* true
|
|
13849
|
+
|
|
13850
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
13851
|
+
|
|
13852
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
13853
|
+
|
|
13854
|
+
---
|
|
13855
|
+
|
|
13670
13856
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.JobProps.property.hostAliases"></a>
|
|
13671
13857
|
|
|
13672
13858
|
```java
|
|
@@ -15371,6 +15557,7 @@ PodProps.builder()
|
|
|
15371
15557
|
// .containers(java.util.List<ContainerProps>)
|
|
15372
15558
|
// .dns(PodDnsProps)
|
|
15373
15559
|
// .dockerRegistryAuth(ISecret)
|
|
15560
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
15374
15561
|
// .hostAliases(java.util.List<HostAlias>)
|
|
15375
15562
|
// .hostNetwork(java.lang.Boolean)
|
|
15376
15563
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -15458,6 +15645,21 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
15458
15645
|
|
|
15459
15646
|
---
|
|
15460
15647
|
|
|
15648
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.PodProps.property.enableServiceLinks"></a>
|
|
15649
|
+
|
|
15650
|
+
```java
|
|
15651
|
+
public java.lang.Boolean getEnableServiceLinks();
|
|
15652
|
+
```
|
|
15653
|
+
|
|
15654
|
+
- *Type:* `java.lang.Boolean`
|
|
15655
|
+
- *Default:* true
|
|
15656
|
+
|
|
15657
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
15658
|
+
|
|
15659
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
15660
|
+
|
|
15661
|
+
---
|
|
15662
|
+
|
|
15461
15663
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.PodProps.property.hostAliases"></a>
|
|
15462
15664
|
|
|
15463
15665
|
```java
|
|
@@ -17186,6 +17388,7 @@ StatefulSetProps.builder()
|
|
|
17186
17388
|
// .containers(java.util.List<ContainerProps>)
|
|
17187
17389
|
// .dns(PodDnsProps)
|
|
17188
17390
|
// .dockerRegistryAuth(ISecret)
|
|
17391
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
17189
17392
|
// .hostAliases(java.util.List<HostAlias>)
|
|
17190
17393
|
// .hostNetwork(java.lang.Boolean)
|
|
17191
17394
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -17281,6 +17484,21 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
17281
17484
|
|
|
17282
17485
|
---
|
|
17283
17486
|
|
|
17487
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.StatefulSetProps.property.enableServiceLinks"></a>
|
|
17488
|
+
|
|
17489
|
+
```java
|
|
17490
|
+
public java.lang.Boolean getEnableServiceLinks();
|
|
17491
|
+
```
|
|
17492
|
+
|
|
17493
|
+
- *Type:* `java.lang.Boolean`
|
|
17494
|
+
- *Default:* true
|
|
17495
|
+
|
|
17496
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
17497
|
+
|
|
17498
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
17499
|
+
|
|
17500
|
+
---
|
|
17501
|
+
|
|
17284
17502
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.StatefulSetProps.property.hostAliases"></a>
|
|
17285
17503
|
|
|
17286
17504
|
```java
|
|
@@ -18026,6 +18244,7 @@ WorkloadProps.builder()
|
|
|
18026
18244
|
// .containers(java.util.List<ContainerProps>)
|
|
18027
18245
|
// .dns(PodDnsProps)
|
|
18028
18246
|
// .dockerRegistryAuth(ISecret)
|
|
18247
|
+
// .enableServiceLinks(java.lang.Boolean)
|
|
18029
18248
|
// .hostAliases(java.util.List<HostAlias>)
|
|
18030
18249
|
// .hostNetwork(java.lang.Boolean)
|
|
18031
18250
|
// .initContainers(java.util.List<ContainerProps>)
|
|
@@ -18116,6 +18335,21 @@ A secret containing docker credentials for authenticating to a registry.
|
|
|
18116
18335
|
|
|
18117
18336
|
---
|
|
18118
18337
|
|
|
18338
|
+
##### `enableServiceLinks`<sup>Optional</sup> <a name="org.cdk8s.plus31.WorkloadProps.property.enableServiceLinks"></a>
|
|
18339
|
+
|
|
18340
|
+
```java
|
|
18341
|
+
public java.lang.Boolean getEnableServiceLinks();
|
|
18342
|
+
```
|
|
18343
|
+
|
|
18344
|
+
- *Type:* `java.lang.Boolean`
|
|
18345
|
+
- *Default:* true
|
|
18346
|
+
|
|
18347
|
+
Indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.
|
|
18348
|
+
|
|
18349
|
+
> https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#accessing-the-service
|
|
18350
|
+
|
|
18351
|
+
---
|
|
18352
|
+
|
|
18119
18353
|
##### `hostAliases`<sup>Optional</sup> <a name="org.cdk8s.plus31.WorkloadProps.property.hostAliases"></a>
|
|
18120
18354
|
|
|
18121
18355
|
```java
|
package/docs/plus/service.md
CHANGED
|
@@ -37,5 +37,5 @@ const chart = new k.Chart(app, 'Chart');
|
|
|
37
37
|
const frontends = new kplus.Service(chart, 'FrontEnds');
|
|
38
38
|
|
|
39
39
|
// make the service bind to port 9000 and redirect to port 80 on the associated containers.
|
|
40
|
-
frontends.bind({port: 9000, targetPort: 80)
|
|
40
|
+
frontends.bind({port: 9000, targetPort: 80})
|
|
41
41
|
```
|