@pulumi/docker 4.4.4 → 4.4.5
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/container.d.ts +12 -12
- package/image.d.ts +1 -2
- package/image.js +1 -2
- package/image.js.map +1 -1
- package/package.json +1 -1
- package/plugin.d.ts +3 -3
- package/remoteImage.d.ts +9 -9
- package/service.d.ts +6 -6
- package/types/input.d.ts +324 -6
- package/types/output.d.ts +324 -6
package/types/input.d.ts
CHANGED
|
@@ -107,21 +107,39 @@ export interface ContainerMount {
|
|
|
107
107
|
volumeOptions?: pulumi.Input<inputs.ContainerMountVolumeOptions>;
|
|
108
108
|
}
|
|
109
109
|
export interface ContainerMountBindOptions {
|
|
110
|
+
/**
|
|
111
|
+
* A propagation mode with the value.
|
|
112
|
+
*/
|
|
110
113
|
propagation?: pulumi.Input<string>;
|
|
111
114
|
}
|
|
112
115
|
export interface ContainerMountTmpfsOptions {
|
|
116
|
+
/**
|
|
117
|
+
* The permission mode for the tmpfs mount in an integer.
|
|
118
|
+
*/
|
|
113
119
|
mode?: pulumi.Input<number>;
|
|
120
|
+
/**
|
|
121
|
+
* The size for the tmpfs mount in bytes.
|
|
122
|
+
*/
|
|
114
123
|
sizeBytes?: pulumi.Input<number>;
|
|
115
124
|
}
|
|
116
125
|
export interface ContainerMountVolumeOptions {
|
|
126
|
+
/**
|
|
127
|
+
* Name of the driver to use to create the volume.
|
|
128
|
+
*/
|
|
117
129
|
driverName?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* key/value map of driver specific options.
|
|
132
|
+
*/
|
|
118
133
|
driverOptions?: pulumi.Input<{
|
|
119
134
|
[key: string]: pulumi.Input<string>;
|
|
120
135
|
}>;
|
|
121
136
|
/**
|
|
122
|
-
* User-defined key/value metadata
|
|
137
|
+
* User-defined key/value metadata.
|
|
123
138
|
*/
|
|
124
139
|
labels?: pulumi.Input<pulumi.Input<inputs.ContainerMountVolumeOptionsLabel>[]>;
|
|
140
|
+
/**
|
|
141
|
+
* Populate volume with data from the target.
|
|
142
|
+
*/
|
|
125
143
|
noCopy?: pulumi.Input<boolean>;
|
|
126
144
|
}
|
|
127
145
|
export interface ContainerMountVolumeOptionsLabel {
|
|
@@ -490,21 +508,51 @@ export interface RemoteImageBuild {
|
|
|
490
508
|
version?: pulumi.Input<string>;
|
|
491
509
|
}
|
|
492
510
|
export interface RemoteImageBuildAuthConfig {
|
|
511
|
+
/**
|
|
512
|
+
* the auth token
|
|
513
|
+
*/
|
|
493
514
|
auth?: pulumi.Input<string>;
|
|
515
|
+
/**
|
|
516
|
+
* the user emal
|
|
517
|
+
*/
|
|
494
518
|
email?: pulumi.Input<string>;
|
|
519
|
+
/**
|
|
520
|
+
* hostname of the registry
|
|
521
|
+
*/
|
|
495
522
|
hostName: pulumi.Input<string>;
|
|
523
|
+
/**
|
|
524
|
+
* the identity token
|
|
525
|
+
*/
|
|
496
526
|
identityToken?: pulumi.Input<string>;
|
|
527
|
+
/**
|
|
528
|
+
* the registry password
|
|
529
|
+
*/
|
|
497
530
|
password?: pulumi.Input<string>;
|
|
531
|
+
/**
|
|
532
|
+
* the registry token
|
|
533
|
+
*/
|
|
498
534
|
registryToken?: pulumi.Input<string>;
|
|
535
|
+
/**
|
|
536
|
+
* the server address
|
|
537
|
+
*/
|
|
499
538
|
serverAddress?: pulumi.Input<string>;
|
|
539
|
+
/**
|
|
540
|
+
* the registry user name
|
|
541
|
+
*/
|
|
500
542
|
userName?: pulumi.Input<string>;
|
|
501
543
|
}
|
|
502
544
|
export interface RemoteImageBuildUlimit {
|
|
545
|
+
/**
|
|
546
|
+
* soft limit
|
|
547
|
+
*/
|
|
503
548
|
hard: pulumi.Input<number>;
|
|
504
549
|
/**
|
|
505
|
-
*
|
|
550
|
+
* type of ulimit, e.g. `nofile`
|
|
506
551
|
*/
|
|
507
552
|
name: pulumi.Input<string>;
|
|
553
|
+
/**
|
|
554
|
+
* hard limit
|
|
555
|
+
*/
|
|
508
556
|
soft: pulumi.Input<number>;
|
|
509
557
|
}
|
|
510
558
|
export interface SecretLabel {
|
|
@@ -553,12 +601,24 @@ export interface ServiceEndpointSpec {
|
|
|
553
601
|
}
|
|
554
602
|
export interface ServiceEndpointSpecPort {
|
|
555
603
|
/**
|
|
556
|
-
*
|
|
604
|
+
* A random name for the port
|
|
557
605
|
*/
|
|
558
606
|
name?: pulumi.Input<string>;
|
|
607
|
+
/**
|
|
608
|
+
* Rrepresents the protocol of a port: `tcp`, `udp` or `sctp`. Defaults to `tcp`.
|
|
609
|
+
*/
|
|
559
610
|
protocol?: pulumi.Input<string>;
|
|
611
|
+
/**
|
|
612
|
+
* Represents the mode in which the port is to be published: 'ingress' or 'host'. Defaults to `ingress`.
|
|
613
|
+
*/
|
|
560
614
|
publishMode?: pulumi.Input<string>;
|
|
615
|
+
/**
|
|
616
|
+
* The port on the swarm hosts
|
|
617
|
+
*/
|
|
561
618
|
publishedPort?: pulumi.Input<number>;
|
|
619
|
+
/**
|
|
620
|
+
* The port inside the container
|
|
621
|
+
*/
|
|
562
622
|
targetPort: pulumi.Input<number>;
|
|
563
623
|
}
|
|
564
624
|
export interface ServiceLabel {
|
|
@@ -582,6 +642,9 @@ export interface ServiceMode {
|
|
|
582
642
|
replicated?: pulumi.Input<inputs.ServiceModeReplicated>;
|
|
583
643
|
}
|
|
584
644
|
export interface ServiceModeReplicated {
|
|
645
|
+
/**
|
|
646
|
+
* The amount of replicas of the service. Defaults to `1`
|
|
647
|
+
*/
|
|
585
648
|
replicas?: pulumi.Input<number>;
|
|
586
649
|
}
|
|
587
650
|
export interface ServiceRollbackConfig {
|
|
@@ -645,57 +708,165 @@ export interface ServiceTaskSpec {
|
|
|
645
708
|
runtime?: pulumi.Input<string>;
|
|
646
709
|
}
|
|
647
710
|
export interface ServiceTaskSpecContainerSpec {
|
|
711
|
+
/**
|
|
712
|
+
* Arguments to the command
|
|
713
|
+
*/
|
|
648
714
|
args?: pulumi.Input<pulumi.Input<string>[]>;
|
|
715
|
+
/**
|
|
716
|
+
* The command/entrypoint to be run in the image. According to the [docker cli](https://github.com/docker/cli/blob/v20.10.7/cli/command/service/opts.go#L705) the override of the entrypoint is also passed to the `command` property and there is no `entrypoint` attribute in the `ContainerSpec` of the service.
|
|
717
|
+
*/
|
|
649
718
|
commands?: pulumi.Input<pulumi.Input<string>[]>;
|
|
719
|
+
/**
|
|
720
|
+
* References to zero or more configs that will be exposed to the service
|
|
721
|
+
*/
|
|
650
722
|
configs?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecConfig>[]>;
|
|
723
|
+
/**
|
|
724
|
+
* The working directory for commands to run in
|
|
725
|
+
*/
|
|
651
726
|
dir?: pulumi.Input<string>;
|
|
727
|
+
/**
|
|
728
|
+
* Specification for DNS related configurations in resolver configuration file (`resolv.conf`)
|
|
729
|
+
*/
|
|
652
730
|
dnsConfig?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecDnsConfig>;
|
|
731
|
+
/**
|
|
732
|
+
* A list of environment variables in the form VAR="value"
|
|
733
|
+
*/
|
|
653
734
|
env?: pulumi.Input<{
|
|
654
735
|
[key: string]: pulumi.Input<string>;
|
|
655
736
|
}>;
|
|
737
|
+
/**
|
|
738
|
+
* A list of additional groups that the container process will run as
|
|
739
|
+
*/
|
|
656
740
|
groups?: pulumi.Input<pulumi.Input<string>[]>;
|
|
741
|
+
/**
|
|
742
|
+
* A test to perform to check that the container is healthy
|
|
743
|
+
*/
|
|
657
744
|
healthcheck?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecHealthcheck>;
|
|
745
|
+
/**
|
|
746
|
+
* The hostname to use for the container, as a valid RFC 1123 hostname
|
|
747
|
+
*/
|
|
658
748
|
hostname?: pulumi.Input<string>;
|
|
749
|
+
/**
|
|
750
|
+
* A list of hostname/IP mappings to add to the container's hosts file
|
|
751
|
+
*/
|
|
659
752
|
hosts?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecHost>[]>;
|
|
753
|
+
/**
|
|
754
|
+
* The image name to use for the containers of the service, like `nginx:1.17.6`. Also use the data-source or resource of `docker.RemoteImage` with the `repoDigest` or `docker.RegistryImage` with the `name` attribute for this, as shown in the examples.
|
|
755
|
+
*/
|
|
660
756
|
image: pulumi.Input<string>;
|
|
757
|
+
/**
|
|
758
|
+
* Isolation technology of the containers running the service. (Windows only). Defaults to `default`.
|
|
759
|
+
*/
|
|
661
760
|
isolation?: pulumi.Input<string>;
|
|
662
761
|
/**
|
|
663
762
|
* User-defined key/value metadata
|
|
664
763
|
*/
|
|
665
764
|
labels?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecLabel>[]>;
|
|
765
|
+
/**
|
|
766
|
+
* Specification for mounts to be added to containers created as part of the service
|
|
767
|
+
*/
|
|
666
768
|
mounts?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecMount>[]>;
|
|
769
|
+
/**
|
|
770
|
+
* Security options for the container
|
|
771
|
+
*/
|
|
667
772
|
privileges?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecPrivileges>;
|
|
773
|
+
/**
|
|
774
|
+
* Whether the mount should be read-only
|
|
775
|
+
*/
|
|
668
776
|
readOnly?: pulumi.Input<boolean>;
|
|
777
|
+
/**
|
|
778
|
+
* References to zero or more secrets that will be exposed to the service
|
|
779
|
+
*/
|
|
669
780
|
secrets?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecSecret>[]>;
|
|
781
|
+
/**
|
|
782
|
+
* Amount of time to wait for the container to terminate before forcefully removing it (ms|s|m|h). If not specified or '0s' the destroy will not check if all tasks/containers of the service terminate.
|
|
783
|
+
*/
|
|
670
784
|
stopGracePeriod?: pulumi.Input<string>;
|
|
785
|
+
/**
|
|
786
|
+
* Signal to stop the container
|
|
787
|
+
*/
|
|
671
788
|
stopSignal?: pulumi.Input<string>;
|
|
789
|
+
/**
|
|
790
|
+
* Sysctls config (Linux only)
|
|
791
|
+
*/
|
|
672
792
|
sysctl?: pulumi.Input<{
|
|
673
793
|
[key: string]: any;
|
|
674
794
|
}>;
|
|
795
|
+
/**
|
|
796
|
+
* SELinux user label
|
|
797
|
+
*/
|
|
675
798
|
user?: pulumi.Input<string>;
|
|
676
799
|
}
|
|
677
800
|
export interface ServiceTaskSpecContainerSpecConfig {
|
|
801
|
+
/**
|
|
802
|
+
* ID of the specific config that we're referencing
|
|
803
|
+
*/
|
|
678
804
|
configId: pulumi.Input<string>;
|
|
805
|
+
/**
|
|
806
|
+
* Name of the config that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID
|
|
807
|
+
*/
|
|
679
808
|
configName?: pulumi.Input<string>;
|
|
809
|
+
/**
|
|
810
|
+
* Represents the file GID. Defaults to `0`.
|
|
811
|
+
*/
|
|
680
812
|
fileGid?: pulumi.Input<string>;
|
|
813
|
+
/**
|
|
814
|
+
* Represents represents the FileMode of the file. Defaults to `0o444`.
|
|
815
|
+
*/
|
|
681
816
|
fileMode?: pulumi.Input<number>;
|
|
817
|
+
/**
|
|
818
|
+
* Represents the final filename in the filesystem
|
|
819
|
+
*/
|
|
682
820
|
fileName: pulumi.Input<string>;
|
|
821
|
+
/**
|
|
822
|
+
* Represents the file UID. Defaults to `0`.
|
|
823
|
+
*/
|
|
683
824
|
fileUid?: pulumi.Input<string>;
|
|
684
825
|
}
|
|
685
826
|
export interface ServiceTaskSpecContainerSpecDnsConfig {
|
|
827
|
+
/**
|
|
828
|
+
* The IP addresses of the name servers
|
|
829
|
+
*/
|
|
686
830
|
nameservers: pulumi.Input<pulumi.Input<string>[]>;
|
|
831
|
+
/**
|
|
832
|
+
* A list of internal resolver variables to be modified (e.g., `debug`, `ndots:3`, etc.)
|
|
833
|
+
*/
|
|
687
834
|
options?: pulumi.Input<pulumi.Input<string>[]>;
|
|
835
|
+
/**
|
|
836
|
+
* A search list for host-name lookup
|
|
837
|
+
*/
|
|
688
838
|
searches?: pulumi.Input<pulumi.Input<string>[]>;
|
|
689
839
|
}
|
|
690
840
|
export interface ServiceTaskSpecContainerSpecHealthcheck {
|
|
841
|
+
/**
|
|
842
|
+
* Time between running the check (ms|s|m|h). Defaults to `0s`.
|
|
843
|
+
*/
|
|
691
844
|
interval?: pulumi.Input<string>;
|
|
845
|
+
/**
|
|
846
|
+
* Consecutive failures needed to report unhealthy. Defaults to `0`
|
|
847
|
+
*/
|
|
692
848
|
retries?: pulumi.Input<number>;
|
|
849
|
+
/**
|
|
850
|
+
* Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`.
|
|
851
|
+
*/
|
|
693
852
|
startPeriod?: pulumi.Input<string>;
|
|
853
|
+
/**
|
|
854
|
+
* The test to perform as list
|
|
855
|
+
*/
|
|
694
856
|
tests: pulumi.Input<pulumi.Input<string>[]>;
|
|
857
|
+
/**
|
|
858
|
+
* The timeout of the service to reach the desired state `(s|m)`. Defaults to `3m`
|
|
859
|
+
*/
|
|
695
860
|
timeout?: pulumi.Input<string>;
|
|
696
861
|
}
|
|
697
862
|
export interface ServiceTaskSpecContainerSpecHost {
|
|
863
|
+
/**
|
|
864
|
+
* The name of the host
|
|
865
|
+
*/
|
|
698
866
|
host: pulumi.Input<string>;
|
|
867
|
+
/**
|
|
868
|
+
* The ip of the host
|
|
869
|
+
*/
|
|
699
870
|
ip: pulumi.Input<string>;
|
|
700
871
|
}
|
|
701
872
|
export interface ServiceTaskSpecContainerSpecLabel {
|
|
@@ -709,26 +880,59 @@ export interface ServiceTaskSpecContainerSpecLabel {
|
|
|
709
880
|
value: pulumi.Input<string>;
|
|
710
881
|
}
|
|
711
882
|
export interface ServiceTaskSpecContainerSpecMount {
|
|
883
|
+
/**
|
|
884
|
+
* Optional configuration for the bind type
|
|
885
|
+
*/
|
|
712
886
|
bindOptions?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecMountBindOptions>;
|
|
887
|
+
/**
|
|
888
|
+
* Whether the mount should be read-only
|
|
889
|
+
*/
|
|
713
890
|
readOnly?: pulumi.Input<boolean>;
|
|
891
|
+
/**
|
|
892
|
+
* Mount source (e.g. a volume name, a host path)
|
|
893
|
+
*/
|
|
714
894
|
source?: pulumi.Input<string>;
|
|
895
|
+
/**
|
|
896
|
+
* Container path
|
|
897
|
+
*/
|
|
715
898
|
target: pulumi.Input<string>;
|
|
899
|
+
/**
|
|
900
|
+
* Optional configuration for the tmpfs type
|
|
901
|
+
*/
|
|
716
902
|
tmpfsOptions?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecMountTmpfsOptions>;
|
|
903
|
+
/**
|
|
904
|
+
* The mount type
|
|
905
|
+
*/
|
|
717
906
|
type: pulumi.Input<string>;
|
|
907
|
+
/**
|
|
908
|
+
* Optional configuration for the volume type
|
|
909
|
+
*/
|
|
718
910
|
volumeOptions?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecMountVolumeOptions>;
|
|
719
911
|
}
|
|
720
912
|
export interface ServiceTaskSpecContainerSpecMountBindOptions {
|
|
913
|
+
/**
|
|
914
|
+
* Bind propagation refers to whether or not mounts created within a given bind-mount or named volume can be propagated to replicas of that mount. See the [docs](https://docs.docker.com/storage/bind-mounts/#configure-bind-propagation) for details. Defaults to `rprivate`
|
|
915
|
+
*/
|
|
721
916
|
propagation?: pulumi.Input<string>;
|
|
722
917
|
}
|
|
723
918
|
export interface ServiceTaskSpecContainerSpecMountTmpfsOptions {
|
|
724
919
|
/**
|
|
725
|
-
*
|
|
920
|
+
* The mode of resolution to use for internal load balancing between tasks
|
|
726
921
|
*/
|
|
727
922
|
mode?: pulumi.Input<number>;
|
|
923
|
+
/**
|
|
924
|
+
* The size for the tmpfs mount in bytes
|
|
925
|
+
*/
|
|
728
926
|
sizeBytes?: pulumi.Input<number>;
|
|
729
927
|
}
|
|
730
928
|
export interface ServiceTaskSpecContainerSpecMountVolumeOptions {
|
|
929
|
+
/**
|
|
930
|
+
* Name of the driver to use to create the volume
|
|
931
|
+
*/
|
|
731
932
|
driverName?: pulumi.Input<string>;
|
|
933
|
+
/**
|
|
934
|
+
* key/value map of driver specific options
|
|
935
|
+
*/
|
|
732
936
|
driverOptions?: pulumi.Input<{
|
|
733
937
|
[key: string]: pulumi.Input<string>;
|
|
734
938
|
}>;
|
|
@@ -736,6 +940,9 @@ export interface ServiceTaskSpecContainerSpecMountVolumeOptions {
|
|
|
736
940
|
* User-defined key/value metadata
|
|
737
941
|
*/
|
|
738
942
|
labels?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecMountVolumeOptionsLabel>[]>;
|
|
943
|
+
/**
|
|
944
|
+
* Populate volume with data from the target
|
|
945
|
+
*/
|
|
739
946
|
noCopy?: pulumi.Input<boolean>;
|
|
740
947
|
}
|
|
741
948
|
export interface ServiceTaskSpecContainerSpecMountVolumeOptionsLabel {
|
|
@@ -749,76 +956,187 @@ export interface ServiceTaskSpecContainerSpecMountVolumeOptionsLabel {
|
|
|
749
956
|
value: pulumi.Input<string>;
|
|
750
957
|
}
|
|
751
958
|
export interface ServiceTaskSpecContainerSpecPrivileges {
|
|
959
|
+
/**
|
|
960
|
+
* CredentialSpec for managed service account (Windows only)
|
|
961
|
+
*/
|
|
752
962
|
credentialSpec?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecPrivilegesCredentialSpec>;
|
|
963
|
+
/**
|
|
964
|
+
* SELinux labels of the container
|
|
965
|
+
*/
|
|
753
966
|
seLinuxContext?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext>;
|
|
754
967
|
}
|
|
755
968
|
export interface ServiceTaskSpecContainerSpecPrivilegesCredentialSpec {
|
|
969
|
+
/**
|
|
970
|
+
* Load credential spec from this file
|
|
971
|
+
*/
|
|
756
972
|
file?: pulumi.Input<string>;
|
|
973
|
+
/**
|
|
974
|
+
* Load credential spec from this value in the Windows registry
|
|
975
|
+
*/
|
|
757
976
|
registry?: pulumi.Input<string>;
|
|
758
977
|
}
|
|
759
978
|
export interface ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext {
|
|
979
|
+
/**
|
|
980
|
+
* Disable SELinux
|
|
981
|
+
*/
|
|
760
982
|
disable?: pulumi.Input<boolean>;
|
|
983
|
+
/**
|
|
984
|
+
* SELinux level label
|
|
985
|
+
*/
|
|
761
986
|
level?: pulumi.Input<string>;
|
|
987
|
+
/**
|
|
988
|
+
* SELinux role label
|
|
989
|
+
*/
|
|
762
990
|
role?: pulumi.Input<string>;
|
|
991
|
+
/**
|
|
992
|
+
* The mount type
|
|
993
|
+
*/
|
|
763
994
|
type?: pulumi.Input<string>;
|
|
995
|
+
/**
|
|
996
|
+
* SELinux user label
|
|
997
|
+
*/
|
|
764
998
|
user?: pulumi.Input<string>;
|
|
765
999
|
}
|
|
766
1000
|
export interface ServiceTaskSpecContainerSpecSecret {
|
|
1001
|
+
/**
|
|
1002
|
+
* Represents the file GID. Defaults to `0`.
|
|
1003
|
+
*/
|
|
767
1004
|
fileGid?: pulumi.Input<string>;
|
|
1005
|
+
/**
|
|
1006
|
+
* Represents represents the FileMode of the file. Defaults to `0o444`.
|
|
1007
|
+
*/
|
|
768
1008
|
fileMode?: pulumi.Input<number>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Represents the final filename in the filesystem
|
|
1011
|
+
*/
|
|
769
1012
|
fileName: pulumi.Input<string>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Represents the file UID. Defaults to `0`.
|
|
1015
|
+
*/
|
|
770
1016
|
fileUid?: pulumi.Input<string>;
|
|
1017
|
+
/**
|
|
1018
|
+
* ID of the specific secret that we're referencing
|
|
1019
|
+
*/
|
|
771
1020
|
secretId: pulumi.Input<string>;
|
|
1021
|
+
/**
|
|
1022
|
+
* Name of the secret that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID
|
|
1023
|
+
*/
|
|
772
1024
|
secretName?: pulumi.Input<string>;
|
|
773
1025
|
}
|
|
774
1026
|
export interface ServiceTaskSpecLogDriver {
|
|
775
1027
|
/**
|
|
776
|
-
*
|
|
1028
|
+
* A random name for the port
|
|
777
1029
|
*/
|
|
778
1030
|
name: pulumi.Input<string>;
|
|
1031
|
+
/**
|
|
1032
|
+
* A list of internal resolver variables to be modified (e.g., `debug`, `ndots:3`, etc.)
|
|
1033
|
+
*/
|
|
779
1034
|
options?: pulumi.Input<{
|
|
780
1035
|
[key: string]: pulumi.Input<string>;
|
|
781
1036
|
}>;
|
|
782
1037
|
}
|
|
783
1038
|
export interface ServiceTaskSpecNetworksAdvanced {
|
|
1039
|
+
/**
|
|
1040
|
+
* The network aliases of the container in the specific network.
|
|
1041
|
+
*/
|
|
784
1042
|
aliases?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1043
|
+
/**
|
|
1044
|
+
* An array of driver options for the network, e.g. `opts1=value`
|
|
1045
|
+
*/
|
|
785
1046
|
driverOpts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
786
1047
|
/**
|
|
787
|
-
*
|
|
1048
|
+
* A random name for the port
|
|
788
1049
|
*/
|
|
789
1050
|
name: pulumi.Input<string>;
|
|
790
1051
|
}
|
|
791
1052
|
export interface ServiceTaskSpecPlacement {
|
|
1053
|
+
/**
|
|
1054
|
+
* An array of constraints. e.g.: `node.role==manager`
|
|
1055
|
+
*/
|
|
792
1056
|
constraints?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Maximum number of replicas for per node (default value is `0`, which is unlimited)
|
|
1059
|
+
*/
|
|
793
1060
|
maxReplicas?: pulumi.Input<number>;
|
|
1061
|
+
/**
|
|
1062
|
+
* Platforms stores all the platforms that the service's image can run on
|
|
1063
|
+
*/
|
|
794
1064
|
platforms?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecPlacementPlatform>[]>;
|
|
1065
|
+
/**
|
|
1066
|
+
* Preferences provide a way to make the scheduler aware of factors such as topology. They are provided in order from highest to lowest precedence, e.g.: `spread=node.role.manager`
|
|
1067
|
+
*/
|
|
795
1068
|
prefs?: pulumi.Input<pulumi.Input<string>[]>;
|
|
796
1069
|
}
|
|
797
1070
|
export interface ServiceTaskSpecPlacementPlatform {
|
|
1071
|
+
/**
|
|
1072
|
+
* The architecture, e.g. `amd64`
|
|
1073
|
+
*/
|
|
798
1074
|
architecture: pulumi.Input<string>;
|
|
1075
|
+
/**
|
|
1076
|
+
* The operation system, e.g. `linux`
|
|
1077
|
+
*/
|
|
799
1078
|
os: pulumi.Input<string>;
|
|
800
1079
|
}
|
|
801
1080
|
export interface ServiceTaskSpecResources {
|
|
1081
|
+
/**
|
|
1082
|
+
* Describes the resources which can be advertised by a node and requested by a task
|
|
1083
|
+
*/
|
|
802
1084
|
limits?: pulumi.Input<inputs.ServiceTaskSpecResourcesLimits>;
|
|
1085
|
+
/**
|
|
1086
|
+
* An object describing the resources which can be advertised by a node and requested by a task
|
|
1087
|
+
*/
|
|
803
1088
|
reservation?: pulumi.Input<inputs.ServiceTaskSpecResourcesReservation>;
|
|
804
1089
|
}
|
|
805
1090
|
export interface ServiceTaskSpecResourcesLimits {
|
|
1091
|
+
/**
|
|
1092
|
+
* The amounf of memory in bytes the container allocates
|
|
1093
|
+
*/
|
|
806
1094
|
memoryBytes?: pulumi.Input<number>;
|
|
1095
|
+
/**
|
|
1096
|
+
* CPU shares in units of `1/1e9` (or `10^-9`) of the CPU. Should be at least `1000000`
|
|
1097
|
+
*/
|
|
807
1098
|
nanoCpus?: pulumi.Input<number>;
|
|
808
1099
|
}
|
|
809
1100
|
export interface ServiceTaskSpecResourcesReservation {
|
|
1101
|
+
/**
|
|
1102
|
+
* User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, GPU=UUID1)
|
|
1103
|
+
*/
|
|
810
1104
|
genericResources?: pulumi.Input<inputs.ServiceTaskSpecResourcesReservationGenericResources>;
|
|
1105
|
+
/**
|
|
1106
|
+
* The amounf of memory in bytes the container allocates
|
|
1107
|
+
*/
|
|
811
1108
|
memoryBytes?: pulumi.Input<number>;
|
|
1109
|
+
/**
|
|
1110
|
+
* CPU shares in units of `1/1e9` (or `10^-9`) of the CPU. Should be at least `1000000`
|
|
1111
|
+
*/
|
|
812
1112
|
nanoCpus?: pulumi.Input<number>;
|
|
813
1113
|
}
|
|
814
1114
|
export interface ServiceTaskSpecResourcesReservationGenericResources {
|
|
1115
|
+
/**
|
|
1116
|
+
* The Integer resources
|
|
1117
|
+
*/
|
|
815
1118
|
discreteResourcesSpecs?: pulumi.Input<pulumi.Input<string>[]>;
|
|
1119
|
+
/**
|
|
1120
|
+
* The String resources
|
|
1121
|
+
*/
|
|
816
1122
|
namedResourcesSpecs?: pulumi.Input<pulumi.Input<string>[]>;
|
|
817
1123
|
}
|
|
818
1124
|
export interface ServiceTaskSpecRestartPolicy {
|
|
1125
|
+
/**
|
|
1126
|
+
* Condition for restart
|
|
1127
|
+
*/
|
|
819
1128
|
condition?: pulumi.Input<string>;
|
|
1129
|
+
/**
|
|
1130
|
+
* The interval to check if the desired state is reached `(ms|s)`. Defaults to `7s`.
|
|
1131
|
+
*/
|
|
820
1132
|
delay?: pulumi.Input<string>;
|
|
1133
|
+
/**
|
|
1134
|
+
* Maximum attempts to restart a given container before giving up (default value is `0`, which is ignored)
|
|
1135
|
+
*/
|
|
821
1136
|
maxAttempts?: pulumi.Input<number>;
|
|
1137
|
+
/**
|
|
1138
|
+
* The time window used to evaluate the restart policy (default value is `0`, which is unbounded) (ms|s|m|h)
|
|
1139
|
+
*/
|
|
822
1140
|
window?: pulumi.Input<string>;
|
|
823
1141
|
}
|
|
824
1142
|
export interface ServiceUpdateConfig {
|