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
Description: "Spec defines the specification of the desired behavior of the daemonset. More info: https://v1-9.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.9/#daemonset-v1-apps",
43
-
Required: true,
44
-
MaxItems: 1,
45
-
Elem: &schema.Resource{
46
-
Schema: map[string]*schema.Schema{
47
-
"min_ready_seconds": {
48
-
Type: schema.TypeInt,
49
-
Description: "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)",
50
-
Optional: true,
51
-
Default: 0,
52
-
},
53
-
"revision_history_limit": {
54
-
Type: schema.TypeInt,
55
-
Description: "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.",
56
-
Optional: true,
57
-
Default: 10,
58
-
},
59
-
"selector": {
60
-
Type: schema.TypeList,
61
-
Description: "A label query over pods that are managed by the DaemonSet.",
Description: "Spec defines the specification of the desired behavior of the daemonset. More info: https://v1-9.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.9/#daemonset-v1-apps",
54
+
Required: true,
55
+
MaxItems: 1,
56
+
Elem: &schema.Resource{
57
+
Schema: map[string]*schema.Schema{
58
+
"min_ready_seconds": {
59
+
Type: schema.TypeInt,
60
+
Description: "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)",
61
+
Optional: true,
62
+
Default: 0,
63
+
},
64
+
"revision_history_limit": {
65
+
Type: schema.TypeInt,
66
+
Description: "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.",
67
+
Optional: true,
68
+
Default: 10,
69
+
},
70
+
"selector": {
71
+
Type: schema.TypeList,
72
+
Description: "A label query over pods that are managed by the DaemonSet.",
73
+
Optional: true,
74
+
ForceNew: true,
75
+
MaxItems: 1,
76
+
Elem: &schema.Resource{
77
+
Schema: labelSelectorFields(true),
68
78
},
69
-
"strategy": {
70
-
Type: schema.TypeList,
71
-
Optional: true,
72
-
Computed: true,
73
-
Description: "The deployment strategy used to replace existing pods with new ones.",
74
-
MaxItems: 1,
75
-
Elem: &schema.Resource{
76
-
Schema: map[string]*schema.Schema{
77
-
"type": {
78
-
Type: schema.TypeString,
79
-
Description: "Type of deployment. Can be 'RollingUpdate' or 'OnDelete'. Default is RollingUpdate.",
Description: "Rolling update config params. Present only if type = 'RollingUpdate'.",
87
-
Optional: true,
88
-
Computed: true,
89
-
MaxItems: 1,
90
-
Elem: &schema.Resource{
91
-
Schema: map[string]*schema.Schema{
92
-
"max_unavailable": {
93
-
Type: schema.TypeString,
94
-
Description: "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.",
Description: "Rolling update config params. Present only if type = 'RollingUpdate'.",
98
+
Optional: true,
99
+
Computed: true,
100
+
MaxItems: 1,
101
+
Elem: &schema.Resource{
102
+
Schema: map[string]*schema.Schema{
103
+
"max_unavailable": {
104
+
Type: schema.TypeString,
105
+
Description: "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.",
Description: "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/#pod-template",
108
-
Required: true,
109
-
MaxItems: 1,
110
-
Elem: &schema.Resource{
111
-
Schema: podTemplateFields("daemon set"),
112
-
},
115
+
},
116
+
"template": {
117
+
Type: schema.TypeList,
118
+
Description: "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/#pod-template",
119
+
Required: true,
120
+
MaxItems: 1,
121
+
Elem: &schema.Resource{
122
+
Schema: podTemplateFields("daemon set"),
113
123
},
114
124
},
115
125
},
116
126
},
117
-
"wait_for_rollout": {
118
-
Type: schema.TypeBool,
119
-
Description: "Wait for the rollout of the deployment to complete. Defaults to true.",
120
-
Default: true,
121
-
Optional:true,
122
-
},
127
+
},
128
+
"wait_for_rollout": {
129
+
Type: schema.TypeBool,
130
+
Description: "Wait for the rollout of the deployment to complete. Defaults to true.",
0 commit comments