github.com/m3db/m3@v1.5.0/scripts/vagrant/provision/manifests/kube-prometheus/0prometheus-operator-0prometheusCustomResourceDefinition.yaml (about) 1 apiVersion: apiextensions.k8s.io/v1beta1 2 kind: CustomResourceDefinition 3 metadata: 4 creationTimestamp: null 5 name: prometheuses.monitoring.coreos.com 6 spec: 7 group: monitoring.coreos.com 8 names: 9 kind: Prometheus 10 plural: prometheuses 11 scope: Namespaced 12 validation: 13 openAPIV3Schema: 14 properties: 15 apiVersion: 16 description: 'APIVersion defines the versioned schema of this representation 17 of an object. Servers should convert recognized schemas to the latest 18 internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources' 19 type: string 20 kind: 21 description: 'Kind is a string value representing the REST resource this 22 object represents. Servers may infer this from the endpoint the client 23 submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' 24 type: string 25 spec: 26 description: 'PrometheusSpec is a specification of the desired behavior 27 of the Prometheus cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#spec-and-status' 28 properties: 29 additionalAlertManagerConfigs: 30 description: SecretKeySelector selects a key of a Secret. 31 properties: 32 key: 33 description: The key of the secret to select from. Must be a valid 34 secret key. 35 type: string 36 name: 37 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 38 type: string 39 optional: 40 description: Specify whether the Secret or it's key must be defined 41 type: boolean 42 required: 43 - key 44 additionalAlertRelabelConfigs: 45 description: SecretKeySelector selects a key of a Secret. 46 properties: 47 key: 48 description: The key of the secret to select from. Must be a valid 49 secret key. 50 type: string 51 name: 52 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 53 type: string 54 optional: 55 description: Specify whether the Secret or it's key must be defined 56 type: boolean 57 required: 58 - key 59 additionalScrapeConfigs: 60 description: SecretKeySelector selects a key of a Secret. 61 properties: 62 key: 63 description: The key of the secret to select from. Must be a valid 64 secret key. 65 type: string 66 name: 67 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 68 type: string 69 optional: 70 description: Specify whether the Secret or it's key must be defined 71 type: boolean 72 required: 73 - key 74 affinity: 75 description: Affinity is a group of affinity scheduling rules. 76 properties: 77 nodeAffinity: 78 description: Node affinity is a group of node affinity scheduling 79 rules. 80 properties: 81 preferredDuringSchedulingIgnoredDuringExecution: 82 description: The scheduler will prefer to schedule pods to nodes 83 that satisfy the affinity expressions specified by this field, 84 but it may choose a node that violates one or more of the 85 expressions. The node that is most preferred is the one with 86 the greatest sum of weights, i.e. for each node that meets 87 all of the scheduling requirements (resource request, requiredDuringScheduling 88 affinity expressions, etc.), compute a sum by iterating through 89 the elements of this field and adding "weight" to the sum 90 if the node matches the corresponding matchExpressions; the 91 node(s) with the highest sum are the most preferred. 92 items: 93 description: An empty preferred scheduling term matches all 94 objects with implicit weight 0 (i.e. it's a no-op). A null 95 preferred scheduling term matches no objects (i.e. is also 96 a no-op). 97 properties: 98 preference: 99 description: A null or empty node selector term matches 100 no objects. The requirements of them are ANDed. The 101 TopologySelectorTerm type implements a subset of the 102 NodeSelectorTerm. 103 properties: 104 matchExpressions: 105 description: A list of node selector requirements 106 by node's labels. 107 items: 108 description: A node selector requirement is a selector 109 that contains values, a key, and an operator that 110 relates the key and values. 111 properties: 112 key: 113 description: The label key that the selector 114 applies to. 115 type: string 116 operator: 117 description: Represents a key's relationship 118 to a set of values. Valid operators are In, 119 NotIn, Exists, DoesNotExist. Gt, and Lt. 120 type: string 121 values: 122 description: An array of string values. If the 123 operator is In or NotIn, the values array 124 must be non-empty. If the operator is Exists 125 or DoesNotExist, the values array must be 126 empty. If the operator is Gt or Lt, the values 127 array must have a single element, which will 128 be interpreted as an integer. This array is 129 replaced during a strategic merge patch. 130 items: 131 type: string 132 type: array 133 required: 134 - key 135 - operator 136 type: array 137 matchFields: 138 description: A list of node selector requirements 139 by node's fields. 140 items: 141 description: A node selector requirement is a selector 142 that contains values, a key, and an operator that 143 relates the key and values. 144 properties: 145 key: 146 description: The label key that the selector 147 applies to. 148 type: string 149 operator: 150 description: Represents a key's relationship 151 to a set of values. Valid operators are In, 152 NotIn, Exists, DoesNotExist. Gt, and Lt. 153 type: string 154 values: 155 description: An array of string values. If the 156 operator is In or NotIn, the values array 157 must be non-empty. If the operator is Exists 158 or DoesNotExist, the values array must be 159 empty. If the operator is Gt or Lt, the values 160 array must have a single element, which will 161 be interpreted as an integer. This array is 162 replaced during a strategic merge patch. 163 items: 164 type: string 165 type: array 166 required: 167 - key 168 - operator 169 type: array 170 weight: 171 description: Weight associated with matching the corresponding 172 nodeSelectorTerm, in the range 1-100. 173 format: int32 174 type: integer 175 required: 176 - weight 177 - preference 178 type: array 179 requiredDuringSchedulingIgnoredDuringExecution: 180 description: A node selector represents the union of the results 181 of one or more label queries over a set of nodes; that is, 182 it represents the OR of the selectors represented by the node 183 selector terms. 184 properties: 185 nodeSelectorTerms: 186 description: Required. A list of node selector terms. The 187 terms are ORed. 188 items: 189 description: A null or empty node selector term matches 190 no objects. The requirements of them are ANDed. The 191 TopologySelectorTerm type implements a subset of the 192 NodeSelectorTerm. 193 properties: 194 matchExpressions: 195 description: A list of node selector requirements 196 by node's labels. 197 items: 198 description: A node selector requirement is a selector 199 that contains values, a key, and an operator that 200 relates the key and values. 201 properties: 202 key: 203 description: The label key that the selector 204 applies to. 205 type: string 206 operator: 207 description: Represents a key's relationship 208 to a set of values. Valid operators are In, 209 NotIn, Exists, DoesNotExist. Gt, and Lt. 210 type: string 211 values: 212 description: An array of string values. If the 213 operator is In or NotIn, the values array 214 must be non-empty. If the operator is Exists 215 or DoesNotExist, the values array must be 216 empty. If the operator is Gt or Lt, the values 217 array must have a single element, which will 218 be interpreted as an integer. This array is 219 replaced during a strategic merge patch. 220 items: 221 type: string 222 type: array 223 required: 224 - key 225 - operator 226 type: array 227 matchFields: 228 description: A list of node selector requirements 229 by node's fields. 230 items: 231 description: A node selector requirement is a selector 232 that contains values, a key, and an operator that 233 relates the key and values. 234 properties: 235 key: 236 description: The label key that the selector 237 applies to. 238 type: string 239 operator: 240 description: Represents a key's relationship 241 to a set of values. Valid operators are In, 242 NotIn, Exists, DoesNotExist. Gt, and Lt. 243 type: string 244 values: 245 description: An array of string values. If the 246 operator is In or NotIn, the values array 247 must be non-empty. If the operator is Exists 248 or DoesNotExist, the values array must be 249 empty. If the operator is Gt or Lt, the values 250 array must have a single element, which will 251 be interpreted as an integer. This array is 252 replaced during a strategic merge patch. 253 items: 254 type: string 255 type: array 256 required: 257 - key 258 - operator 259 type: array 260 type: array 261 required: 262 - nodeSelectorTerms 263 podAffinity: 264 description: Pod affinity is a group of inter pod affinity scheduling 265 rules. 266 properties: 267 preferredDuringSchedulingIgnoredDuringExecution: 268 description: The scheduler will prefer to schedule pods to nodes 269 that satisfy the affinity expressions specified by this field, 270 but it may choose a node that violates one or more of the 271 expressions. The node that is most preferred is the one with 272 the greatest sum of weights, i.e. for each node that meets 273 all of the scheduling requirements (resource request, requiredDuringScheduling 274 affinity expressions, etc.), compute a sum by iterating through 275 the elements of this field and adding "weight" to the sum 276 if the node has pods which matches the corresponding podAffinityTerm; 277 the node(s) with the highest sum are the most preferred. 278 items: 279 description: The weights of all of the matched WeightedPodAffinityTerm 280 fields are added per-node to find the most preferred node(s) 281 properties: 282 podAffinityTerm: 283 description: Defines a set of pods (namely those matching 284 the labelSelector relative to the given namespace(s)) 285 that this pod should be co-located (affinity) or not 286 co-located (anti-affinity) with, where co-located is 287 defined as running on a node whose value of the label 288 with key <topologyKey> matches that of any node on which 289 a pod of the set of pods is running 290 properties: 291 labelSelector: 292 description: A label selector is a label query over 293 a set of resources. The result of matchLabels and 294 matchExpressions are ANDed. An empty label selector 295 matches all objects. A null label selector matches 296 no objects. 297 properties: 298 matchExpressions: 299 description: matchExpressions is a list of label 300 selector requirements. The requirements are 301 ANDed. 302 items: 303 description: A label selector requirement is 304 a selector that contains values, a key, and 305 an operator that relates the key and values. 306 properties: 307 key: 308 description: key is the label key that the 309 selector applies to. 310 type: string 311 operator: 312 description: operator represents a key's 313 relationship to a set of values. Valid 314 operators are In, NotIn, Exists and DoesNotExist. 315 type: string 316 values: 317 description: values is an array of string 318 values. If the operator is In or NotIn, 319 the values array must be non-empty. If 320 the operator is Exists or DoesNotExist, 321 the values array must be empty. This array 322 is replaced during a strategic merge patch. 323 items: 324 type: string 325 type: array 326 required: 327 - key 328 - operator 329 type: array 330 matchLabels: 331 description: matchLabels is a map of {key,value} 332 pairs. A single {key,value} in the matchLabels 333 map is equivalent to an element of matchExpressions, 334 whose key field is "key", the operator is "In", 335 and the values array contains only "value". 336 The requirements are ANDed. 337 type: object 338 namespaces: 339 description: namespaces specifies which namespaces 340 the labelSelector applies to (matches against); 341 null or empty list means "this pod's namespace" 342 items: 343 type: string 344 type: array 345 topologyKey: 346 description: This pod should be co-located (affinity) 347 or not co-located (anti-affinity) with the pods 348 matching the labelSelector in the specified namespaces, 349 where co-located is defined as running on a node 350 whose value of the label with key topologyKey matches 351 that of any node on which any of the selected pods 352 is running. Empty topologyKey is not allowed. 353 type: string 354 required: 355 - topologyKey 356 weight: 357 description: weight associated with matching the corresponding 358 podAffinityTerm, in the range 1-100. 359 format: int32 360 type: integer 361 required: 362 - weight 363 - podAffinityTerm 364 type: array 365 requiredDuringSchedulingIgnoredDuringExecution: 366 description: If the affinity requirements specified by this 367 field are not met at scheduling time, the pod will not be 368 scheduled onto the node. If the affinity requirements specified 369 by this field cease to be met at some point during pod execution 370 (e.g. due to a pod label update), the system may or may not 371 try to eventually evict the pod from its node. When there 372 are multiple elements, the lists of nodes corresponding to 373 each podAffinityTerm are intersected, i.e. all terms must 374 be satisfied. 375 items: 376 description: Defines a set of pods (namely those matching 377 the labelSelector relative to the given namespace(s)) that 378 this pod should be co-located (affinity) or not co-located 379 (anti-affinity) with, where co-located is defined as running 380 on a node whose value of the label with key <topologyKey> 381 matches that of any node on which a pod of the set of pods 382 is running 383 properties: 384 labelSelector: 385 description: A label selector is a label query over a 386 set of resources. The result of matchLabels and matchExpressions 387 are ANDed. An empty label selector matches all objects. 388 A null label selector matches no objects. 389 properties: 390 matchExpressions: 391 description: matchExpressions is a list of label selector 392 requirements. The requirements are ANDed. 393 items: 394 description: A label selector requirement is a selector 395 that contains values, a key, and an operator that 396 relates the key and values. 397 properties: 398 key: 399 description: key is the label key that the selector 400 applies to. 401 type: string 402 operator: 403 description: operator represents a key's relationship 404 to a set of values. Valid operators are In, 405 NotIn, Exists and DoesNotExist. 406 type: string 407 values: 408 description: values is an array of string values. 409 If the operator is In or NotIn, the values 410 array must be non-empty. If the operator is 411 Exists or DoesNotExist, the values array must 412 be empty. This array is replaced during a 413 strategic merge patch. 414 items: 415 type: string 416 type: array 417 required: 418 - key 419 - operator 420 type: array 421 matchLabels: 422 description: matchLabels is a map of {key,value} pairs. 423 A single {key,value} in the matchLabels map is equivalent 424 to an element of matchExpressions, whose key field 425 is "key", the operator is "In", and the values array 426 contains only "value". The requirements are ANDed. 427 type: object 428 namespaces: 429 description: namespaces specifies which namespaces the 430 labelSelector applies to (matches against); null or 431 empty list means "this pod's namespace" 432 items: 433 type: string 434 type: array 435 topologyKey: 436 description: This pod should be co-located (affinity) 437 or not co-located (anti-affinity) with the pods matching 438 the labelSelector in the specified namespaces, where 439 co-located is defined as running on a node whose value 440 of the label with key topologyKey matches that of any 441 node on which any of the selected pods is running. Empty 442 topologyKey is not allowed. 443 type: string 444 required: 445 - topologyKey 446 type: array 447 podAntiAffinity: 448 description: Pod anti affinity is a group of inter pod anti affinity 449 scheduling rules. 450 properties: 451 preferredDuringSchedulingIgnoredDuringExecution: 452 description: The scheduler will prefer to schedule pods to nodes 453 that satisfy the anti-affinity expressions specified by this 454 field, but it may choose a node that violates one or more 455 of the expressions. The node that is most preferred is the 456 one with the greatest sum of weights, i.e. for each node that 457 meets all of the scheduling requirements (resource request, 458 requiredDuringScheduling anti-affinity expressions, etc.), 459 compute a sum by iterating through the elements of this field 460 and adding "weight" to the sum if the node has pods which 461 matches the corresponding podAffinityTerm; the node(s) with 462 the highest sum are the most preferred. 463 items: 464 description: The weights of all of the matched WeightedPodAffinityTerm 465 fields are added per-node to find the most preferred node(s) 466 properties: 467 podAffinityTerm: 468 description: Defines a set of pods (namely those matching 469 the labelSelector relative to the given namespace(s)) 470 that this pod should be co-located (affinity) or not 471 co-located (anti-affinity) with, where co-located is 472 defined as running on a node whose value of the label 473 with key <topologyKey> matches that of any node on which 474 a pod of the set of pods is running 475 properties: 476 labelSelector: 477 description: A label selector is a label query over 478 a set of resources. The result of matchLabels and 479 matchExpressions are ANDed. An empty label selector 480 matches all objects. A null label selector matches 481 no objects. 482 properties: 483 matchExpressions: 484 description: matchExpressions is a list of label 485 selector requirements. The requirements are 486 ANDed. 487 items: 488 description: A label selector requirement is 489 a selector that contains values, a key, and 490 an operator that relates the key and values. 491 properties: 492 key: 493 description: key is the label key that the 494 selector applies to. 495 type: string 496 operator: 497 description: operator represents a key's 498 relationship to a set of values. Valid 499 operators are In, NotIn, Exists and DoesNotExist. 500 type: string 501 values: 502 description: values is an array of string 503 values. If the operator is In or NotIn, 504 the values array must be non-empty. If 505 the operator is Exists or DoesNotExist, 506 the values array must be empty. This array 507 is replaced during a strategic merge patch. 508 items: 509 type: string 510 type: array 511 required: 512 - key 513 - operator 514 type: array 515 matchLabels: 516 description: matchLabels is a map of {key,value} 517 pairs. A single {key,value} in the matchLabels 518 map is equivalent to an element of matchExpressions, 519 whose key field is "key", the operator is "In", 520 and the values array contains only "value". 521 The requirements are ANDed. 522 type: object 523 namespaces: 524 description: namespaces specifies which namespaces 525 the labelSelector applies to (matches against); 526 null or empty list means "this pod's namespace" 527 items: 528 type: string 529 type: array 530 topologyKey: 531 description: This pod should be co-located (affinity) 532 or not co-located (anti-affinity) with the pods 533 matching the labelSelector in the specified namespaces, 534 where co-located is defined as running on a node 535 whose value of the label with key topologyKey matches 536 that of any node on which any of the selected pods 537 is running. Empty topologyKey is not allowed. 538 type: string 539 required: 540 - topologyKey 541 weight: 542 description: weight associated with matching the corresponding 543 podAffinityTerm, in the range 1-100. 544 format: int32 545 type: integer 546 required: 547 - weight 548 - podAffinityTerm 549 type: array 550 requiredDuringSchedulingIgnoredDuringExecution: 551 description: If the anti-affinity requirements specified by 552 this field are not met at scheduling time, the pod will not 553 be scheduled onto the node. If the anti-affinity requirements 554 specified by this field cease to be met at some point during 555 pod execution (e.g. due to a pod label update), the system 556 may or may not try to eventually evict the pod from its node. 557 When there are multiple elements, the lists of nodes corresponding 558 to each podAffinityTerm are intersected, i.e. all terms must 559 be satisfied. 560 items: 561 description: Defines a set of pods (namely those matching 562 the labelSelector relative to the given namespace(s)) that 563 this pod should be co-located (affinity) or not co-located 564 (anti-affinity) with, where co-located is defined as running 565 on a node whose value of the label with key <topologyKey> 566 matches that of any node on which a pod of the set of pods 567 is running 568 properties: 569 labelSelector: 570 description: A label selector is a label query over a 571 set of resources. The result of matchLabels and matchExpressions 572 are ANDed. An empty label selector matches all objects. 573 A null label selector matches no objects. 574 properties: 575 matchExpressions: 576 description: matchExpressions is a list of label selector 577 requirements. The requirements are ANDed. 578 items: 579 description: A label selector requirement is a selector 580 that contains values, a key, and an operator that 581 relates the key and values. 582 properties: 583 key: 584 description: key is the label key that the selector 585 applies to. 586 type: string 587 operator: 588 description: operator represents a key's relationship 589 to a set of values. Valid operators are In, 590 NotIn, Exists and DoesNotExist. 591 type: string 592 values: 593 description: values is an array of string values. 594 If the operator is In or NotIn, the values 595 array must be non-empty. If the operator is 596 Exists or DoesNotExist, the values array must 597 be empty. This array is replaced during a 598 strategic merge patch. 599 items: 600 type: string 601 type: array 602 required: 603 - key 604 - operator 605 type: array 606 matchLabels: 607 description: matchLabels is a map of {key,value} pairs. 608 A single {key,value} in the matchLabels map is equivalent 609 to an element of matchExpressions, whose key field 610 is "key", the operator is "In", and the values array 611 contains only "value". The requirements are ANDed. 612 type: object 613 namespaces: 614 description: namespaces specifies which namespaces the 615 labelSelector applies to (matches against); null or 616 empty list means "this pod's namespace" 617 items: 618 type: string 619 type: array 620 topologyKey: 621 description: This pod should be co-located (affinity) 622 or not co-located (anti-affinity) with the pods matching 623 the labelSelector in the specified namespaces, where 624 co-located is defined as running on a node whose value 625 of the label with key topologyKey matches that of any 626 node on which any of the selected pods is running. Empty 627 topologyKey is not allowed. 628 type: string 629 required: 630 - topologyKey 631 type: array 632 alerting: 633 description: AlertingSpec defines parameters for alerting configuration 634 of Prometheus servers. 635 properties: 636 alertmanagers: 637 description: AlertmanagerEndpoints Prometheus should fire alerts 638 against. 639 items: 640 description: AlertmanagerEndpoints defines a selection of a single 641 Endpoints object containing alertmanager IPs to fire alerts 642 against. 643 properties: 644 bearerTokenFile: 645 description: BearerTokenFile to read from filesystem to use 646 when authenticating to Alertmanager. 647 type: string 648 name: 649 description: Name of Endpoints object in Namespace. 650 type: string 651 namespace: 652 description: Namespace of Endpoints object. 653 type: string 654 pathPrefix: 655 description: Prefix for the HTTP path alerts are pushed to. 656 type: string 657 port: 658 anyOf: 659 - type: string 660 - type: integer 661 scheme: 662 description: Scheme to use when firing alerts. 663 type: string 664 tlsConfig: 665 description: TLSConfig specifies TLS configuration parameters. 666 properties: 667 caFile: 668 description: The CA cert to use for the targets. 669 type: string 670 certFile: 671 description: The client cert file for the targets. 672 type: string 673 insecureSkipVerify: 674 description: Disable target certificate validation. 675 type: boolean 676 keyFile: 677 description: The client key file for the targets. 678 type: string 679 serverName: 680 description: Used to verify the hostname for the targets. 681 type: string 682 required: 683 - namespace 684 - name 685 - port 686 type: array 687 required: 688 - alertmanagers 689 apiserverConfig: 690 description: 'APIServerConfig defines a host and auth methods to access 691 apiserver. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config' 692 properties: 693 basicAuth: 694 description: 'BasicAuth allow an endpoint to authenticate over basic 695 authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' 696 properties: 697 password: 698 description: SecretKeySelector selects a key of a Secret. 699 properties: 700 key: 701 description: The key of the secret to select from. Must 702 be a valid secret key. 703 type: string 704 name: 705 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 706 type: string 707 optional: 708 description: Specify whether the Secret or it's key must 709 be defined 710 type: boolean 711 required: 712 - key 713 username: 714 description: SecretKeySelector selects a key of a Secret. 715 properties: 716 key: 717 description: The key of the secret to select from. Must 718 be a valid secret key. 719 type: string 720 name: 721 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 722 type: string 723 optional: 724 description: Specify whether the Secret or it's key must 725 be defined 726 type: boolean 727 required: 728 - key 729 bearerToken: 730 description: Bearer token for accessing apiserver. 731 type: string 732 bearerTokenFile: 733 description: File to read bearer token for accessing apiserver. 734 type: string 735 host: 736 description: Host of apiserver. A valid string consisting of a hostname 737 or IP followed by an optional port number 738 type: string 739 tlsConfig: 740 description: TLSConfig specifies TLS configuration parameters. 741 properties: 742 caFile: 743 description: The CA cert to use for the targets. 744 type: string 745 certFile: 746 description: The client cert file for the targets. 747 type: string 748 insecureSkipVerify: 749 description: Disable target certificate validation. 750 type: boolean 751 keyFile: 752 description: The client key file for the targets. 753 type: string 754 serverName: 755 description: Used to verify the hostname for the targets. 756 type: string 757 required: 758 - host 759 baseImage: 760 description: Base image to use for a Prometheus deployment. 761 type: string 762 configMaps: 763 description: ConfigMaps is a list of ConfigMaps in the same namespace 764 as the Prometheus object, which shall be mounted into the Prometheus 765 Pods. The ConfigMaps are mounted into /etc/prometheus/configmaps/<configmap-name>. 766 items: 767 type: string 768 type: array 769 containers: 770 description: Containers allows injecting additional containers. This 771 is meant to allow adding an authentication proxy to a Prometheus pod. 772 items: 773 description: A single application container that you want to run within 774 a pod. 775 properties: 776 args: 777 description: 'Arguments to the entrypoint. The docker image''s 778 CMD is used if this is not provided. Variable references $(VAR_NAME) 779 are expanded using the container''s environment. If a variable 780 cannot be resolved, the reference in the input string will be 781 unchanged. The $(VAR_NAME) syntax can be escaped with a double 782 $$, ie: $$(VAR_NAME). Escaped references will never be expanded, 783 regardless of whether the variable exists or not. Cannot be 784 updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell' 785 items: 786 type: string 787 type: array 788 command: 789 description: 'Entrypoint array. Not executed within a shell. The 790 docker image''s ENTRYPOINT is used if this is not provided. 791 Variable references $(VAR_NAME) are expanded using the container''s 792 environment. If a variable cannot be resolved, the reference 793 in the input string will be unchanged. The $(VAR_NAME) syntax 794 can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references 795 will never be expanded, regardless of whether the variable exists 796 or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell' 797 items: 798 type: string 799 type: array 800 env: 801 description: List of environment variables to set in the container. 802 Cannot be updated. 803 items: 804 description: EnvVar represents an environment variable present 805 in a Container. 806 properties: 807 name: 808 description: Name of the environment variable. Must be a 809 C_IDENTIFIER. 810 type: string 811 value: 812 description: 'Variable references $(VAR_NAME) are expanded 813 using the previous defined environment variables in the 814 container and any service environment variables. If a 815 variable cannot be resolved, the reference in the input 816 string will be unchanged. The $(VAR_NAME) syntax can be 817 escaped with a double $$, ie: $$(VAR_NAME). Escaped references 818 will never be expanded, regardless of whether the variable 819 exists or not. Defaults to "".' 820 type: string 821 valueFrom: 822 description: EnvVarSource represents a source for the value 823 of an EnvVar. 824 properties: 825 configMapKeyRef: 826 description: Selects a key from a ConfigMap. 827 properties: 828 key: 829 description: The key to select. 830 type: string 831 name: 832 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 833 type: string 834 optional: 835 description: Specify whether the ConfigMap or it's 836 key must be defined 837 type: boolean 838 required: 839 - key 840 fieldRef: 841 description: ObjectFieldSelector selects an APIVersioned 842 field of an object. 843 properties: 844 apiVersion: 845 description: Version of the schema the FieldPath 846 is written in terms of, defaults to "v1". 847 type: string 848 fieldPath: 849 description: Path of the field to select in the 850 specified API version. 851 type: string 852 required: 853 - fieldPath 854 resourceFieldRef: 855 description: ResourceFieldSelector represents container 856 resources (cpu, memory) and their output format 857 properties: 858 containerName: 859 description: 'Container name: required for volumes, 860 optional for env vars' 861 type: string 862 divisor: {} 863 resource: 864 description: 'Required: resource to select' 865 type: string 866 required: 867 - resource 868 secretKeyRef: 869 description: SecretKeySelector selects a key of a Secret. 870 properties: 871 key: 872 description: The key of the secret to select from. Must 873 be a valid secret key. 874 type: string 875 name: 876 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 877 type: string 878 optional: 879 description: Specify whether the Secret or it's 880 key must be defined 881 type: boolean 882 required: 883 - key 884 required: 885 - name 886 type: array 887 envFrom: 888 description: List of sources to populate environment variables 889 in the container. The keys defined within a source must be a 890 C_IDENTIFIER. All invalid keys will be reported as an event 891 when the container is starting. When a key exists in multiple 892 sources, the value associated with the last source will take 893 precedence. Values defined by an Env with a duplicate key will 894 take precedence. Cannot be updated. 895 items: 896 description: EnvFromSource represents the source of a set of 897 ConfigMaps 898 properties: 899 configMapRef: 900 description: |- 901 ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. 902 903 The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. 904 properties: 905 name: 906 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 907 type: string 908 optional: 909 description: Specify whether the ConfigMap must be defined 910 type: boolean 911 prefix: 912 description: An optional identifier to prepend to each key 913 in the ConfigMap. Must be a C_IDENTIFIER. 914 type: string 915 secretRef: 916 description: |- 917 SecretEnvSource selects a Secret to populate the environment variables with. 918 919 The contents of the target Secret's Data field will represent the key-value pairs as environment variables. 920 properties: 921 name: 922 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 923 type: string 924 optional: 925 description: Specify whether the Secret must be defined 926 type: boolean 927 type: array 928 image: 929 description: 'Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images 930 This field is optional to allow higher level config management 931 to default or override container images in workload controllers 932 like Deployments and StatefulSets.' 933 type: string 934 imagePullPolicy: 935 description: 'Image pull policy. One of Always, Never, IfNotPresent. 936 Defaults to Always if :latest tag is specified, or IfNotPresent 937 otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images' 938 type: string 939 lifecycle: 940 description: Lifecycle describes actions that the management system 941 should take in response to container lifecycle events. For the 942 PostStart and PreStop lifecycle handlers, management of the 943 container blocks until the action is complete, unless the container 944 process fails, in which case the handler is aborted. 945 properties: 946 postStart: 947 description: Handler defines a specific action that should 948 be taken 949 properties: 950 exec: 951 description: ExecAction describes a "run in container" 952 action. 953 properties: 954 command: 955 description: Command is the command line to execute 956 inside the container, the working directory for 957 the command is root ('/') in the container's filesystem. 958 The command is simply exec'd, it is not run inside 959 a shell, so traditional shell instructions ('|', 960 etc) won't work. To use a shell, you need to explicitly 961 call out to that shell. Exit status of 0 is treated 962 as live/healthy and non-zero is unhealthy. 963 items: 964 type: string 965 type: array 966 httpGet: 967 description: HTTPGetAction describes an action based on 968 HTTP Get requests. 969 properties: 970 host: 971 description: Host name to connect to, defaults to 972 the pod IP. You probably want to set "Host" in httpHeaders 973 instead. 974 type: string 975 httpHeaders: 976 description: Custom headers to set in the request. 977 HTTP allows repeated headers. 978 items: 979 description: HTTPHeader describes a custom header 980 to be used in HTTP probes 981 properties: 982 name: 983 description: The header field name 984 type: string 985 value: 986 description: The header field value 987 type: string 988 required: 989 - name 990 - value 991 type: array 992 path: 993 description: Path to access on the HTTP server. 994 type: string 995 port: 996 anyOf: 997 - type: string 998 - type: integer 999 scheme: 1000 description: Scheme to use for connecting to the host. 1001 Defaults to HTTP. 1002 type: string 1003 required: 1004 - port 1005 tcpSocket: 1006 description: TCPSocketAction describes an action based 1007 on opening a socket 1008 properties: 1009 host: 1010 description: 'Optional: Host name to connect to, defaults 1011 to the pod IP.' 1012 type: string 1013 port: 1014 anyOf: 1015 - type: string 1016 - type: integer 1017 required: 1018 - port 1019 preStop: 1020 description: Handler defines a specific action that should 1021 be taken 1022 properties: 1023 exec: 1024 description: ExecAction describes a "run in container" 1025 action. 1026 properties: 1027 command: 1028 description: Command is the command line to execute 1029 inside the container, the working directory for 1030 the command is root ('/') in the container's filesystem. 1031 The command is simply exec'd, it is not run inside 1032 a shell, so traditional shell instructions ('|', 1033 etc) won't work. To use a shell, you need to explicitly 1034 call out to that shell. Exit status of 0 is treated 1035 as live/healthy and non-zero is unhealthy. 1036 items: 1037 type: string 1038 type: array 1039 httpGet: 1040 description: HTTPGetAction describes an action based on 1041 HTTP Get requests. 1042 properties: 1043 host: 1044 description: Host name to connect to, defaults to 1045 the pod IP. You probably want to set "Host" in httpHeaders 1046 instead. 1047 type: string 1048 httpHeaders: 1049 description: Custom headers to set in the request. 1050 HTTP allows repeated headers. 1051 items: 1052 description: HTTPHeader describes a custom header 1053 to be used in HTTP probes 1054 properties: 1055 name: 1056 description: The header field name 1057 type: string 1058 value: 1059 description: The header field value 1060 type: string 1061 required: 1062 - name 1063 - value 1064 type: array 1065 path: 1066 description: Path to access on the HTTP server. 1067 type: string 1068 port: 1069 anyOf: 1070 - type: string 1071 - type: integer 1072 scheme: 1073 description: Scheme to use for connecting to the host. 1074 Defaults to HTTP. 1075 type: string 1076 required: 1077 - port 1078 tcpSocket: 1079 description: TCPSocketAction describes an action based 1080 on opening a socket 1081 properties: 1082 host: 1083 description: 'Optional: Host name to connect to, defaults 1084 to the pod IP.' 1085 type: string 1086 port: 1087 anyOf: 1088 - type: string 1089 - type: integer 1090 required: 1091 - port 1092 livenessProbe: 1093 description: Probe describes a health check to be performed against 1094 a container to determine whether it is alive or ready to receive 1095 traffic. 1096 properties: 1097 exec: 1098 description: ExecAction describes a "run in container" action. 1099 properties: 1100 command: 1101 description: Command is the command line to execute inside 1102 the container, the working directory for the command is 1103 root ('/') in the container's filesystem. The command 1104 is simply exec'd, it is not run inside a shell, so traditional 1105 shell instructions ('|', etc) won't work. To use a shell, 1106 you need to explicitly call out to that shell. Exit 1107 status of 0 is treated as live/healthy and non-zero 1108 is unhealthy. 1109 items: 1110 type: string 1111 type: array 1112 failureThreshold: 1113 description: Minimum consecutive failures for the probe to 1114 be considered failed after having succeeded. Defaults to 1115 3. Minimum value is 1. 1116 format: int32 1117 type: integer 1118 httpGet: 1119 description: HTTPGetAction describes an action based on HTTP 1120 Get requests. 1121 properties: 1122 host: 1123 description: Host name to connect to, defaults to the 1124 pod IP. You probably want to set "Host" in httpHeaders 1125 instead. 1126 type: string 1127 httpHeaders: 1128 description: Custom headers to set in the request. HTTP 1129 allows repeated headers. 1130 items: 1131 description: HTTPHeader describes a custom header to 1132 be used in HTTP probes 1133 properties: 1134 name: 1135 description: The header field name 1136 type: string 1137 value: 1138 description: The header field value 1139 type: string 1140 required: 1141 - name 1142 - value 1143 type: array 1144 path: 1145 description: Path to access on the HTTP server. 1146 type: string 1147 port: 1148 anyOf: 1149 - type: string 1150 - type: integer 1151 scheme: 1152 description: Scheme to use for connecting to the host. 1153 Defaults to HTTP. 1154 type: string 1155 required: 1156 - port 1157 initialDelaySeconds: 1158 description: 'Number of seconds after the container has started 1159 before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' 1160 format: int32 1161 type: integer 1162 periodSeconds: 1163 description: How often (in seconds) to perform the probe. 1164 Default to 10 seconds. Minimum value is 1. 1165 format: int32 1166 type: integer 1167 successThreshold: 1168 description: Minimum consecutive successes for the probe to 1169 be considered successful after having failed. Defaults to 1170 1. Must be 1 for liveness. Minimum value is 1. 1171 format: int32 1172 type: integer 1173 tcpSocket: 1174 description: TCPSocketAction describes an action based on 1175 opening a socket 1176 properties: 1177 host: 1178 description: 'Optional: Host name to connect to, defaults 1179 to the pod IP.' 1180 type: string 1181 port: 1182 anyOf: 1183 - type: string 1184 - type: integer 1185 required: 1186 - port 1187 timeoutSeconds: 1188 description: 'Number of seconds after which the probe times 1189 out. Defaults to 1 second. Minimum value is 1. More info: 1190 https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' 1191 format: int32 1192 type: integer 1193 name: 1194 description: Name of the container specified as a DNS_LABEL. Each 1195 container in a pod must have a unique name (DNS_LABEL). Cannot 1196 be updated. 1197 type: string 1198 ports: 1199 description: List of ports to expose from the container. Exposing 1200 a port here gives the system additional information about the 1201 network connections a container uses, but is primarily informational. 1202 Not specifying a port here DOES NOT prevent that port from being 1203 exposed. Any port which is listening on the default "0.0.0.0" 1204 address inside a container will be accessible from the network. 1205 Cannot be updated. 1206 items: 1207 description: ContainerPort represents a network port in a single 1208 container. 1209 properties: 1210 containerPort: 1211 description: Number of port to expose on the pod's IP address. 1212 This must be a valid port number, 0 < x < 65536. 1213 format: int32 1214 type: integer 1215 hostIP: 1216 description: What host IP to bind the external port to. 1217 type: string 1218 hostPort: 1219 description: Number of port to expose on the host. If specified, 1220 this must be a valid port number, 0 < x < 65536. If HostNetwork 1221 is specified, this must match ContainerPort. Most containers 1222 do not need this. 1223 format: int32 1224 type: integer 1225 name: 1226 description: If specified, this must be an IANA_SVC_NAME 1227 and unique within the pod. Each named port in a pod must 1228 have a unique name. Name for the port that can be referred 1229 to by services. 1230 type: string 1231 protocol: 1232 description: Protocol for port. Must be UDP, TCP, or SCTP. 1233 Defaults to "TCP". 1234 type: string 1235 required: 1236 - containerPort 1237 type: array 1238 readinessProbe: 1239 description: Probe describes a health check to be performed against 1240 a container to determine whether it is alive or ready to receive 1241 traffic. 1242 properties: 1243 exec: 1244 description: ExecAction describes a "run in container" action. 1245 properties: 1246 command: 1247 description: Command is the command line to execute inside 1248 the container, the working directory for the command is 1249 root ('/') in the container's filesystem. The command 1250 is simply exec'd, it is not run inside a shell, so traditional 1251 shell instructions ('|', etc) won't work. To use a shell, 1252 you need to explicitly call out to that shell. Exit 1253 status of 0 is treated as live/healthy and non-zero 1254 is unhealthy. 1255 items: 1256 type: string 1257 type: array 1258 failureThreshold: 1259 description: Minimum consecutive failures for the probe to 1260 be considered failed after having succeeded. Defaults to 1261 3. Minimum value is 1. 1262 format: int32 1263 type: integer 1264 httpGet: 1265 description: HTTPGetAction describes an action based on HTTP 1266 Get requests. 1267 properties: 1268 host: 1269 description: Host name to connect to, defaults to the 1270 pod IP. You probably want to set "Host" in httpHeaders 1271 instead. 1272 type: string 1273 httpHeaders: 1274 description: Custom headers to set in the request. HTTP 1275 allows repeated headers. 1276 items: 1277 description: HTTPHeader describes a custom header to 1278 be used in HTTP probes 1279 properties: 1280 name: 1281 description: The header field name 1282 type: string 1283 value: 1284 description: The header field value 1285 type: string 1286 required: 1287 - name 1288 - value 1289 type: array 1290 path: 1291 description: Path to access on the HTTP server. 1292 type: string 1293 port: 1294 anyOf: 1295 - type: string 1296 - type: integer 1297 scheme: 1298 description: Scheme to use for connecting to the host. 1299 Defaults to HTTP. 1300 type: string 1301 required: 1302 - port 1303 initialDelaySeconds: 1304 description: 'Number of seconds after the container has started 1305 before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' 1306 format: int32 1307 type: integer 1308 periodSeconds: 1309 description: How often (in seconds) to perform the probe. 1310 Default to 10 seconds. Minimum value is 1. 1311 format: int32 1312 type: integer 1313 successThreshold: 1314 description: Minimum consecutive successes for the probe to 1315 be considered successful after having failed. Defaults to 1316 1. Must be 1 for liveness. Minimum value is 1. 1317 format: int32 1318 type: integer 1319 tcpSocket: 1320 description: TCPSocketAction describes an action based on 1321 opening a socket 1322 properties: 1323 host: 1324 description: 'Optional: Host name to connect to, defaults 1325 to the pod IP.' 1326 type: string 1327 port: 1328 anyOf: 1329 - type: string 1330 - type: integer 1331 required: 1332 - port 1333 timeoutSeconds: 1334 description: 'Number of seconds after which the probe times 1335 out. Defaults to 1 second. Minimum value is 1. More info: 1336 https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' 1337 format: int32 1338 type: integer 1339 resources: 1340 description: ResourceRequirements describes the compute resource 1341 requirements. 1342 properties: 1343 limits: 1344 description: 'Limits describes the maximum amount of compute 1345 resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' 1346 type: object 1347 requests: 1348 description: 'Requests describes the minimum amount of compute 1349 resources required. If Requests is omitted for a container, 1350 it defaults to Limits if that is explicitly specified, otherwise 1351 to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' 1352 type: object 1353 securityContext: 1354 description: SecurityContext holds security configuration that 1355 will be applied to a container. Some fields are present in both 1356 SecurityContext and PodSecurityContext. When both are set, 1357 the values in SecurityContext take precedence. 1358 properties: 1359 allowPrivilegeEscalation: 1360 description: 'AllowPrivilegeEscalation controls whether a 1361 process can gain more privileges than its parent process. 1362 This bool directly controls if the no_new_privs flag will 1363 be set on the container process. AllowPrivilegeEscalation 1364 is true always when the container is: 1) run as Privileged 1365 2) has CAP_SYS_ADMIN' 1366 type: boolean 1367 capabilities: 1368 description: Adds and removes POSIX capabilities from running 1369 containers. 1370 properties: 1371 add: 1372 description: Added capabilities 1373 items: 1374 type: string 1375 type: array 1376 drop: 1377 description: Removed capabilities 1378 items: 1379 type: string 1380 type: array 1381 privileged: 1382 description: Run container in privileged mode. Processes in 1383 privileged containers are essentially equivalent to root 1384 on the host. Defaults to false. 1385 type: boolean 1386 procMount: 1387 description: procMount denotes the type of proc mount to use 1388 for the containers. The default is DefaultProcMount which 1389 uses the container runtime defaults for readonly paths and 1390 masked paths. This requires the ProcMountType feature flag 1391 to be enabled. 1392 type: string 1393 readOnlyRootFilesystem: 1394 description: Whether this container has a read-only root filesystem. 1395 Default is false. 1396 type: boolean 1397 runAsGroup: 1398 description: The GID to run the entrypoint of the container 1399 process. Uses runtime default if unset. May also be set 1400 in PodSecurityContext. If set in both SecurityContext and 1401 PodSecurityContext, the value specified in SecurityContext 1402 takes precedence. 1403 format: int64 1404 type: integer 1405 runAsNonRoot: 1406 description: Indicates that the container must run as a non-root 1407 user. If true, the Kubelet will validate the image at runtime 1408 to ensure that it does not run as UID 0 (root) and fail 1409 to start the container if it does. If unset or false, no 1410 such validation will be performed. May also be set in PodSecurityContext. If 1411 set in both SecurityContext and PodSecurityContext, the 1412 value specified in SecurityContext takes precedence. 1413 type: boolean 1414 runAsUser: 1415 description: The UID to run the entrypoint of the container 1416 process. Defaults to user specified in image metadata if 1417 unspecified. May also be set in PodSecurityContext. If 1418 set in both SecurityContext and PodSecurityContext, the 1419 value specified in SecurityContext takes precedence. 1420 format: int64 1421 type: integer 1422 seLinuxOptions: 1423 description: SELinuxOptions are the labels to be applied to 1424 the container 1425 properties: 1426 level: 1427 description: Level is SELinux level label that applies 1428 to the container. 1429 type: string 1430 role: 1431 description: Role is a SELinux role label that applies 1432 to the container. 1433 type: string 1434 type: 1435 description: Type is a SELinux type label that applies 1436 to the container. 1437 type: string 1438 user: 1439 description: User is a SELinux user label that applies 1440 to the container. 1441 type: string 1442 stdin: 1443 description: Whether this container should allocate a buffer for 1444 stdin in the container runtime. If this is not set, reads from 1445 stdin in the container will always result in EOF. Default is 1446 false. 1447 type: boolean 1448 stdinOnce: 1449 description: Whether the container runtime should close the stdin 1450 channel after it has been opened by a single attach. When stdin 1451 is true the stdin stream will remain open across multiple attach 1452 sessions. If stdinOnce is set to true, stdin is opened on container 1453 start, is empty until the first client attaches to stdin, and 1454 then remains open and accepts data until the client disconnects, 1455 at which time stdin is closed and remains closed until the container 1456 is restarted. If this flag is false, a container processes that 1457 reads from stdin will never receive an EOF. Default is false 1458 type: boolean 1459 terminationMessagePath: 1460 description: 'Optional: Path at which the file to which the container''s 1461 termination message will be written is mounted into the container''s 1462 filesystem. Message written is intended to be brief final status, 1463 such as an assertion failure message. Will be truncated by the 1464 node if greater than 4096 bytes. The total message length across 1465 all containers will be limited to 12kb. Defaults to /dev/termination-log. 1466 Cannot be updated.' 1467 type: string 1468 terminationMessagePolicy: 1469 description: Indicate how the termination message should be populated. 1470 File will use the contents of terminationMessagePath to populate 1471 the container status message on both success and failure. FallbackToLogsOnError 1472 will use the last chunk of container log output if the termination 1473 message file is empty and the container exited with an error. 1474 The log output is limited to 2048 bytes or 80 lines, whichever 1475 is smaller. Defaults to File. Cannot be updated. 1476 type: string 1477 tty: 1478 description: Whether this container should allocate a TTY for 1479 itself, also requires 'stdin' to be true. Default is false. 1480 type: boolean 1481 volumeDevices: 1482 description: volumeDevices is the list of block devices to be 1483 used by the container. This is a beta feature. 1484 items: 1485 description: volumeDevice describes a mapping of a raw block 1486 device within a container. 1487 properties: 1488 devicePath: 1489 description: devicePath is the path inside of the container 1490 that the device will be mapped to. 1491 type: string 1492 name: 1493 description: name must match the name of a persistentVolumeClaim 1494 in the pod 1495 type: string 1496 required: 1497 - name 1498 - devicePath 1499 type: array 1500 volumeMounts: 1501 description: Pod volumes to mount into the container's filesystem. 1502 Cannot be updated. 1503 items: 1504 description: VolumeMount describes a mounting of a Volume within 1505 a container. 1506 properties: 1507 mountPath: 1508 description: Path within the container at which the volume 1509 should be mounted. Must not contain ':'. 1510 type: string 1511 mountPropagation: 1512 description: mountPropagation determines how mounts are 1513 propagated from the host to container and the other way 1514 around. When not set, MountPropagationNone is used. This 1515 field is beta in 1.10. 1516 type: string 1517 name: 1518 description: This must match the Name of a Volume. 1519 type: string 1520 readOnly: 1521 description: Mounted read-only if true, read-write otherwise 1522 (false or unspecified). Defaults to false. 1523 type: boolean 1524 subPath: 1525 description: Path within the volume from which the container's 1526 volume should be mounted. Defaults to "" (volume's root). 1527 type: string 1528 required: 1529 - name 1530 - mountPath 1531 type: array 1532 workingDir: 1533 description: Container's working directory. If not specified, 1534 the container runtime's default will be used, which might be 1535 configured in the container image. Cannot be updated. 1536 type: string 1537 required: 1538 - name 1539 type: array 1540 enableAdminAPI: 1541 description: 'Enable access to prometheus web admin API. Defaults to 1542 the value of `false`. WARNING: Enabling the admin APIs enables mutating 1543 endpoints, to delete data, shutdown Prometheus, and more. Enabling 1544 this should be done with care and the user is advised to add additional 1545 authentication authorization via a proxy to ensure only clients authorized 1546 to perform these actions can do so. For more information see https://prometheus.io/docs/prometheus/latest/querying/api/#tsdb-admin-apis' 1547 type: boolean 1548 evaluationInterval: 1549 description: Interval between consecutive evaluations. 1550 type: string 1551 externalLabels: 1552 description: The labels to add to any time series or alerts when communicating 1553 with external systems (federation, remote storage, Alertmanager). 1554 type: object 1555 externalUrl: 1556 description: The external URL the Prometheus instances will be available 1557 under. This is necessary to generate correct URLs. This is necessary 1558 if Prometheus is not served from root of a DNS name. 1559 type: string 1560 image: 1561 description: Image if specified has precedence over baseImage, tag and 1562 sha combinations. Specifying the version is still necessary to ensure 1563 the Prometheus Operator knows what version of Prometheus is being 1564 configured. 1565 type: string 1566 imagePullSecrets: 1567 description: An optional list of references to secrets in the same namespace 1568 to use for pulling prometheus and alertmanager images from registries 1569 see http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod 1570 items: 1571 description: LocalObjectReference contains enough information to let 1572 you locate the referenced object inside the same namespace. 1573 properties: 1574 name: 1575 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 1576 type: string 1577 type: array 1578 listenLocal: 1579 description: ListenLocal makes the Prometheus server listen on loopback, 1580 so that it does not bind against the Pod IP. 1581 type: boolean 1582 logFormat: 1583 description: Log format for Prometheus to be configured with. 1584 type: string 1585 logLevel: 1586 description: Log level for Prometheus to be configured with. 1587 type: string 1588 nodeSelector: 1589 description: Define which Nodes the Pods are scheduled on. 1590 type: object 1591 paused: 1592 description: When a Prometheus deployment is paused, no actions except 1593 for deletion will be performed on the underlying objects. 1594 type: boolean 1595 podMetadata: 1596 description: ObjectMeta is metadata that all persisted resources must 1597 have, which includes all objects users must create. 1598 properties: 1599 annotations: 1600 description: 'Annotations is an unstructured key value map stored 1601 with a resource that may be set by external tools to store and 1602 retrieve arbitrary metadata. They are not queryable and should 1603 be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations' 1604 type: object 1605 clusterName: 1606 description: The name of the cluster which the object belongs to. 1607 This is used to distinguish resources with same name and namespace 1608 in different clusters. This field is not set anywhere right now 1609 and apiserver is going to ignore it if set in create or update 1610 request. 1611 type: string 1612 creationTimestamp: 1613 description: Time is a wrapper around time.Time which supports correct 1614 marshaling to YAML and JSON. Wrappers are provided for many of 1615 the factory methods that the time package offers. 1616 format: date-time 1617 type: string 1618 deletionGracePeriodSeconds: 1619 description: Number of seconds allowed for this object to gracefully 1620 terminate before it will be removed from the system. Only set 1621 when deletionTimestamp is also set. May only be shortened. Read-only. 1622 format: int64 1623 type: integer 1624 deletionTimestamp: 1625 description: Time is a wrapper around time.Time which supports correct 1626 marshaling to YAML and JSON. Wrappers are provided for many of 1627 the factory methods that the time package offers. 1628 format: date-time 1629 type: string 1630 finalizers: 1631 description: Must be empty before the object is deleted from the 1632 registry. Each entry is an identifier for the responsible component 1633 that will remove the entry from the list. If the deletionTimestamp 1634 of the object is non-nil, entries in this list can only be removed. 1635 items: 1636 type: string 1637 type: array 1638 generateName: 1639 description: |- 1640 GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. 1641 1642 If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). 1643 1644 Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency 1645 type: string 1646 generation: 1647 description: A sequence number representing a specific generation 1648 of the desired state. Populated by the system. Read-only. 1649 format: int64 1650 type: integer 1651 initializers: 1652 description: Initializers tracks the progress of initialization. 1653 properties: 1654 pending: 1655 description: Pending is a list of initializers that must execute 1656 in order before this object is visible. When the last pending 1657 initializer is removed, and no failing result is set, the 1658 initializers struct will be set to nil and the object is considered 1659 as initialized and visible to all clients. 1660 items: 1661 description: Initializer is information about an initializer 1662 that has not yet completed. 1663 properties: 1664 name: 1665 description: name of the process that is responsible for 1666 initializing this object. 1667 type: string 1668 required: 1669 - name 1670 type: array 1671 result: 1672 description: Status is a return value for calls that don't return 1673 other objects. 1674 properties: 1675 apiVersion: 1676 description: 'APIVersion defines the versioned schema of 1677 this representation of an object. Servers should convert 1678 recognized schemas to the latest internal value, and may 1679 reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources' 1680 type: string 1681 code: 1682 description: Suggested HTTP return code for this status, 1683 0 if not set. 1684 format: int32 1685 type: integer 1686 details: 1687 description: StatusDetails is a set of additional properties 1688 that MAY be set by the server to provide additional information 1689 about a response. The Reason field of a Status object 1690 defines what attributes will be set. Clients must ignore 1691 fields that do not match the defined type of each attribute, 1692 and should assume that any attribute may be empty, invalid, 1693 or under defined. 1694 properties: 1695 causes: 1696 description: The Causes array includes more details 1697 associated with the StatusReason failure. Not all 1698 StatusReasons may provide detailed causes. 1699 items: 1700 description: StatusCause provides more information 1701 about an api.Status failure, including cases when 1702 multiple errors are encountered. 1703 properties: 1704 field: 1705 description: |- 1706 The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. 1707 1708 Examples: 1709 "name" - the field "name" on the current resource 1710 "items[0].name" - the field "name" on the first array entry in "items" 1711 type: string 1712 message: 1713 description: A human-readable description of the 1714 cause of the error. This field may be presented 1715 as-is to a reader. 1716 type: string 1717 reason: 1718 description: A machine-readable description of 1719 the cause of the error. If this value is empty 1720 there is no information available. 1721 type: string 1722 type: array 1723 group: 1724 description: The group attribute of the resource associated 1725 with the status StatusReason. 1726 type: string 1727 kind: 1728 description: 'The kind attribute of the resource associated 1729 with the status StatusReason. On some operations may 1730 differ from the requested resource Kind. More info: 1731 https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' 1732 type: string 1733 name: 1734 description: The name attribute of the resource associated 1735 with the status StatusReason (when there is a single 1736 name which can be described). 1737 type: string 1738 retryAfterSeconds: 1739 description: If specified, the time in seconds before 1740 the operation should be retried. Some errors may indicate 1741 the client must take an alternate action - for those 1742 errors this field may indicate how long to wait before 1743 taking the alternate action. 1744 format: int32 1745 type: integer 1746 uid: 1747 description: 'UID of the resource. (when there is a 1748 single resource which can be described). More info: 1749 http://kubernetes.io/docs/user-guide/identifiers#uids' 1750 type: string 1751 kind: 1752 description: 'Kind is a string value representing the REST 1753 resource this object represents. Servers may infer this 1754 from the endpoint the client submits requests to. Cannot 1755 be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' 1756 type: string 1757 message: 1758 description: A human-readable description of the status 1759 of this operation. 1760 type: string 1761 metadata: 1762 description: ListMeta describes metadata that synthetic 1763 resources must have, including lists and various status 1764 objects. A resource may have only one of {ObjectMeta, 1765 ListMeta}. 1766 properties: 1767 continue: 1768 description: continue may be set if the user set a limit 1769 on the number of items returned, and indicates that 1770 the server has more data available. The value is opaque 1771 and may be used to issue another request to the endpoint 1772 that served this list to retrieve the next set of 1773 available objects. Continuing a consistent list may 1774 not be possible if the server configuration has changed 1775 or more than a few minutes have passed. The resourceVersion 1776 field returned when using this continue value will 1777 be identical to the value in the first response, unless 1778 you have received this token from an error message. 1779 type: string 1780 resourceVersion: 1781 description: 'String that identifies the server''s internal 1782 version of this object that can be used by clients 1783 to determine when objects have changed. Value must 1784 be treated as opaque by clients and passed unmodified 1785 back to the server. Populated by the system. Read-only. 1786 More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency' 1787 type: string 1788 selfLink: 1789 description: selfLink is a URL representing this object. 1790 Populated by the system. Read-only. 1791 type: string 1792 reason: 1793 description: A machine-readable description of why this 1794 operation is in the "Failure" status. If this value is 1795 empty there is no information available. A Reason clarifies 1796 an HTTP status code but does not override it. 1797 type: string 1798 status: 1799 description: 'Status of the operation. One of: "Success" 1800 or "Failure". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status' 1801 type: string 1802 required: 1803 - pending 1804 labels: 1805 description: 'Map of string keys and values that can be used to 1806 organize and categorize (scope and select) objects. May match 1807 selectors of replication controllers and services. More info: 1808 http://kubernetes.io/docs/user-guide/labels' 1809 type: object 1810 name: 1811 description: 'Name must be unique within a namespace. Is required 1812 when creating resources, although some resources may allow a client 1813 to request the generation of an appropriate name automatically. 1814 Name is primarily intended for creation idempotence and configuration 1815 definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names' 1816 type: string 1817 namespace: 1818 description: |- 1819 Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. 1820 1821 Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces 1822 type: string 1823 ownerReferences: 1824 description: List of objects depended by this object. If ALL objects 1825 in the list have been deleted, this object will be garbage collected. 1826 If this object is managed by a controller, then an entry in this 1827 list will point to this controller, with the controller field 1828 set to true. There cannot be more than one managing controller. 1829 items: 1830 description: OwnerReference contains enough information to let 1831 you identify an owning object. An owning object must be in the 1832 same namespace as the dependent, or be cluster-scoped, so there 1833 is no namespace field. 1834 properties: 1835 apiVersion: 1836 description: API version of the referent. 1837 type: string 1838 blockOwnerDeletion: 1839 description: If true, AND if the owner has the "foregroundDeletion" 1840 finalizer, then the owner cannot be deleted from the key-value 1841 store until this reference is removed. Defaults to false. 1842 To set this field, a user needs "delete" permission of the 1843 owner, otherwise 422 (Unprocessable Entity) will be returned. 1844 type: boolean 1845 controller: 1846 description: If true, this reference points to the managing 1847 controller. 1848 type: boolean 1849 kind: 1850 description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' 1851 type: string 1852 name: 1853 description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names' 1854 type: string 1855 uid: 1856 description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids' 1857 type: string 1858 required: 1859 - apiVersion 1860 - kind 1861 - name 1862 - uid 1863 type: array 1864 resourceVersion: 1865 description: |- 1866 An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. 1867 1868 Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency 1869 type: string 1870 selfLink: 1871 description: SelfLink is a URL representing this object. Populated 1872 by the system. Read-only. 1873 type: string 1874 uid: 1875 description: |- 1876 UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. 1877 1878 Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids 1879 type: string 1880 priorityClassName: 1881 description: Priority class assigned to the Pods 1882 type: string 1883 query: 1884 description: QuerySpec defines the query command line flags when starting 1885 Prometheus. 1886 properties: 1887 lookbackDelta: 1888 description: The delta difference allowed for retrieving metrics 1889 during expression evaluations. 1890 type: string 1891 maxConcurrency: 1892 description: Number of concurrent queries that can be run at once. 1893 format: int32 1894 type: integer 1895 timeout: 1896 description: Maximum time a query may take before being aborted. 1897 type: string 1898 remoteRead: 1899 description: If specified, the remote_read spec. This is an experimental 1900 feature, it may change in any upcoming release in a breaking way. 1901 items: 1902 description: RemoteReadSpec defines the remote_read configuration 1903 for prometheus. 1904 properties: 1905 basicAuth: 1906 description: 'BasicAuth allow an endpoint to authenticate over 1907 basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' 1908 properties: 1909 password: 1910 description: SecretKeySelector selects a key of a Secret. 1911 properties: 1912 key: 1913 description: The key of the secret to select from. Must 1914 be a valid secret key. 1915 type: string 1916 name: 1917 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 1918 type: string 1919 optional: 1920 description: Specify whether the Secret or it's key must 1921 be defined 1922 type: boolean 1923 required: 1924 - key 1925 username: 1926 description: SecretKeySelector selects a key of a Secret. 1927 properties: 1928 key: 1929 description: The key of the secret to select from. Must 1930 be a valid secret key. 1931 type: string 1932 name: 1933 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 1934 type: string 1935 optional: 1936 description: Specify whether the Secret or it's key must 1937 be defined 1938 type: boolean 1939 required: 1940 - key 1941 bearerToken: 1942 description: bearer token for remote read. 1943 type: string 1944 bearerTokenFile: 1945 description: File to read bearer token for remote read. 1946 type: string 1947 proxyUrl: 1948 description: Optional ProxyURL 1949 type: string 1950 readRecent: 1951 description: Whether reads should be made for queries for time 1952 ranges that the local storage should have complete data for. 1953 type: boolean 1954 remoteTimeout: 1955 description: Timeout for requests to the remote read endpoint. 1956 type: string 1957 requiredMatchers: 1958 description: An optional list of equality matchers which have 1959 to be present in a selector to query the remote read endpoint. 1960 type: object 1961 tlsConfig: 1962 description: TLSConfig specifies TLS configuration parameters. 1963 properties: 1964 caFile: 1965 description: The CA cert to use for the targets. 1966 type: string 1967 certFile: 1968 description: The client cert file for the targets. 1969 type: string 1970 insecureSkipVerify: 1971 description: Disable target certificate validation. 1972 type: boolean 1973 keyFile: 1974 description: The client key file for the targets. 1975 type: string 1976 serverName: 1977 description: Used to verify the hostname for the targets. 1978 type: string 1979 url: 1980 description: The URL of the endpoint to send samples to. 1981 type: string 1982 required: 1983 - url 1984 type: array 1985 remoteWrite: 1986 description: If specified, the remote_write spec. This is an experimental 1987 feature, it may change in any upcoming release in a breaking way. 1988 items: 1989 description: RemoteWriteSpec defines the remote_write configuration 1990 for prometheus. 1991 properties: 1992 basicAuth: 1993 description: 'BasicAuth allow an endpoint to authenticate over 1994 basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints' 1995 properties: 1996 password: 1997 description: SecretKeySelector selects a key of a Secret. 1998 properties: 1999 key: 2000 description: The key of the secret to select from. Must 2001 be a valid secret key. 2002 type: string 2003 name: 2004 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 2005 type: string 2006 optional: 2007 description: Specify whether the Secret or it's key must 2008 be defined 2009 type: boolean 2010 required: 2011 - key 2012 username: 2013 description: SecretKeySelector selects a key of a Secret. 2014 properties: 2015 key: 2016 description: The key of the secret to select from. Must 2017 be a valid secret key. 2018 type: string 2019 name: 2020 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 2021 type: string 2022 optional: 2023 description: Specify whether the Secret or it's key must 2024 be defined 2025 type: boolean 2026 required: 2027 - key 2028 bearerToken: 2029 description: File to read bearer token for remote write. 2030 type: string 2031 bearerTokenFile: 2032 description: File to read bearer token for remote write. 2033 type: string 2034 proxyUrl: 2035 description: Optional ProxyURL 2036 type: string 2037 queueConfig: 2038 description: QueueConfig allows the tuning of remote_write queue_config 2039 parameters. This object is referenced in the RemoteWriteSpec 2040 object. 2041 properties: 2042 batchSendDeadline: 2043 description: BatchSendDeadline is the maximum time a sample 2044 will wait in buffer. 2045 type: string 2046 capacity: 2047 description: Capacity is the number of samples to buffer per 2048 shard before we start dropping them. 2049 format: int32 2050 type: integer 2051 maxBackoff: 2052 description: MaxBackoff is the maximum retry delay. 2053 type: string 2054 maxRetries: 2055 description: MaxRetries is the maximum number of times to 2056 retry a batch on recoverable errors. 2057 format: int32 2058 type: integer 2059 maxSamplesPerSend: 2060 description: MaxSamplesPerSend is the maximum number of samples 2061 per send. 2062 format: int32 2063 type: integer 2064 maxShards: 2065 description: MaxShards is the maximum number of shards, i.e. 2066 amount of concurrency. 2067 format: int32 2068 type: integer 2069 minBackoff: 2070 description: MinBackoff is the initial retry delay. Gets doubled 2071 for every retry. 2072 type: string 2073 minShards: 2074 description: MinShards is the minimum number of shards, i.e. 2075 amount of concurrency. 2076 format: int32 2077 type: integer 2078 remoteTimeout: 2079 description: Timeout for requests to the remote write endpoint. 2080 type: string 2081 tlsConfig: 2082 description: TLSConfig specifies TLS configuration parameters. 2083 properties: 2084 caFile: 2085 description: The CA cert to use for the targets. 2086 type: string 2087 certFile: 2088 description: The client cert file for the targets. 2089 type: string 2090 insecureSkipVerify: 2091 description: Disable target certificate validation. 2092 type: boolean 2093 keyFile: 2094 description: The client key file for the targets. 2095 type: string 2096 serverName: 2097 description: Used to verify the hostname for the targets. 2098 type: string 2099 url: 2100 description: The URL of the endpoint to send samples to. 2101 type: string 2102 writeRelabelConfigs: 2103 description: The list of remote write relabel configurations. 2104 items: 2105 description: 'RelabelConfig allows dynamic rewriting of the 2106 label set, being applied to samples before ingestion. It defines 2107 `<metric_relabel_configs>`-section of Prometheus configuration. 2108 More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs' 2109 properties: 2110 action: 2111 description: Action to perform based on regex matching. 2112 Default is 'replace' 2113 type: string 2114 modulus: 2115 description: Modulus to take of the hash of the source label 2116 values. 2117 format: int64 2118 type: integer 2119 regex: 2120 description: Regular expression against which the extracted 2121 value is matched. defailt is '(.*)' 2122 type: string 2123 replacement: 2124 description: Replacement value against which a regex replace 2125 is performed if the regular expression matches. Regex 2126 capture groups are available. Default is '$1' 2127 type: string 2128 separator: 2129 description: Separator placed between concatenated source 2130 label values. default is ';'. 2131 type: string 2132 sourceLabels: 2133 description: The source labels select values from existing 2134 labels. Their content is concatenated using the configured 2135 separator and matched against the configured regular expression 2136 for the replace, keep, and drop actions. 2137 items: 2138 type: string 2139 type: array 2140 targetLabel: 2141 description: Label to which the resulting value is written 2142 in a replace action. It is mandatory for replace actions. 2143 Regex capture groups are available. 2144 type: string 2145 type: array 2146 required: 2147 - url 2148 type: array 2149 replicaExternalLabelName: 2150 description: Name of Prometheus external label used to denote replica 2151 name. Defaults to the value of `prometheus_replica`. 2152 type: string 2153 replicas: 2154 description: Number of instances to deploy for a Prometheus deployment. 2155 format: int32 2156 type: integer 2157 resources: 2158 description: ResourceRequirements describes the compute resource requirements. 2159 properties: 2160 limits: 2161 description: 'Limits describes the maximum amount of compute resources 2162 allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' 2163 type: object 2164 requests: 2165 description: 'Requests describes the minimum amount of compute resources 2166 required. If Requests is omitted for a container, it defaults 2167 to Limits if that is explicitly specified, otherwise to an implementation-defined 2168 value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' 2169 type: object 2170 retention: 2171 description: Time duration Prometheus shall retain data for. Default 2172 is '24h', and must match the regular expression `[0-9]+(ms|s|m|h|d|w|y)` 2173 (milliseconds seconds minutes hours days weeks years). 2174 type: string 2175 routePrefix: 2176 description: The route prefix Prometheus registers HTTP handlers for. 2177 This is useful, if using ExternalURL and a proxy is rewriting HTTP 2178 routes of a request, and the actual ExternalURL is still true, but 2179 the server serves requests under a different route prefix. For example 2180 for use with `kubectl proxy`. 2181 type: string 2182 ruleNamespaceSelector: 2183 description: A label selector is a label query over a set of resources. 2184 The result of matchLabels and matchExpressions are ANDed. An empty 2185 label selector matches all objects. A null label selector matches 2186 no objects. 2187 properties: 2188 matchExpressions: 2189 description: matchExpressions is a list of label selector requirements. 2190 The requirements are ANDed. 2191 items: 2192 description: A label selector requirement is a selector that contains 2193 values, a key, and an operator that relates the key and values. 2194 properties: 2195 key: 2196 description: key is the label key that the selector applies 2197 to. 2198 type: string 2199 operator: 2200 description: operator represents a key's relationship to a 2201 set of values. Valid operators are In, NotIn, Exists and 2202 DoesNotExist. 2203 type: string 2204 values: 2205 description: values is an array of string values. If the operator 2206 is In or NotIn, the values array must be non-empty. If the 2207 operator is Exists or DoesNotExist, the values array must 2208 be empty. This array is replaced during a strategic merge 2209 patch. 2210 items: 2211 type: string 2212 type: array 2213 required: 2214 - key 2215 - operator 2216 type: array 2217 matchLabels: 2218 description: matchLabels is a map of {key,value} pairs. A single 2219 {key,value} in the matchLabels map is equivalent to an element 2220 of matchExpressions, whose key field is "key", the operator is 2221 "In", and the values array contains only "value". The requirements 2222 are ANDed. 2223 type: object 2224 ruleSelector: 2225 description: A label selector is a label query over a set of resources. 2226 The result of matchLabels and matchExpressions are ANDed. An empty 2227 label selector matches all objects. A null label selector matches 2228 no objects. 2229 properties: 2230 matchExpressions: 2231 description: matchExpressions is a list of label selector requirements. 2232 The requirements are ANDed. 2233 items: 2234 description: A label selector requirement is a selector that contains 2235 values, a key, and an operator that relates the key and values. 2236 properties: 2237 key: 2238 description: key is the label key that the selector applies 2239 to. 2240 type: string 2241 operator: 2242 description: operator represents a key's relationship to a 2243 set of values. Valid operators are In, NotIn, Exists and 2244 DoesNotExist. 2245 type: string 2246 values: 2247 description: values is an array of string values. If the operator 2248 is In or NotIn, the values array must be non-empty. If the 2249 operator is Exists or DoesNotExist, the values array must 2250 be empty. This array is replaced during a strategic merge 2251 patch. 2252 items: 2253 type: string 2254 type: array 2255 required: 2256 - key 2257 - operator 2258 type: array 2259 matchLabels: 2260 description: matchLabels is a map of {key,value} pairs. A single 2261 {key,value} in the matchLabels map is equivalent to an element 2262 of matchExpressions, whose key field is "key", the operator is 2263 "In", and the values array contains only "value". The requirements 2264 are ANDed. 2265 type: object 2266 rules: 2267 description: /--rules.*/ command-line arguments 2268 properties: 2269 alert: 2270 description: /--rules.alert.*/ command-line arguments 2271 properties: 2272 forGracePeriod: 2273 description: Minimum duration between alert and restored 'for' 2274 state. This is maintained only for alerts with configured 2275 'for' time greater than grace period. 2276 type: string 2277 forOutageTolerance: 2278 description: Max time to tolerate prometheus outage for restoring 2279 'for' state of alert. 2280 type: string 2281 resendDelay: 2282 description: Minimum amount of time to wait before resending 2283 an alert to Alertmanager. 2284 type: string 2285 scrapeInterval: 2286 description: Interval between consecutive scrapes. 2287 type: string 2288 secrets: 2289 description: Secrets is a list of Secrets in the same namespace as the 2290 Prometheus object, which shall be mounted into the Prometheus Pods. 2291 The Secrets are mounted into /etc/prometheus/secrets/<secret-name>. 2292 items: 2293 type: string 2294 type: array 2295 securityContext: 2296 description: PodSecurityContext holds pod-level security attributes 2297 and common container settings. Some fields are also present in container.securityContext. Field 2298 values of container.securityContext take precedence over field values 2299 of PodSecurityContext. 2300 properties: 2301 fsGroup: 2302 description: |- 2303 A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 2304 2305 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- 2306 2307 If unset, the Kubelet will not modify the ownership and permissions of any volume. 2308 format: int64 2309 type: integer 2310 runAsGroup: 2311 description: The GID to run the entrypoint of the container process. 2312 Uses runtime default if unset. May also be set in SecurityContext. If 2313 set in both SecurityContext and PodSecurityContext, the value 2314 specified in SecurityContext takes precedence for that container. 2315 format: int64 2316 type: integer 2317 runAsNonRoot: 2318 description: Indicates that the container must run as a non-root 2319 user. If true, the Kubelet will validate the image at runtime 2320 to ensure that it does not run as UID 0 (root) and fail to start 2321 the container if it does. If unset or false, no such validation 2322 will be performed. May also be set in SecurityContext. If set 2323 in both SecurityContext and PodSecurityContext, the value specified 2324 in SecurityContext takes precedence. 2325 type: boolean 2326 runAsUser: 2327 description: The UID to run the entrypoint of the container process. 2328 Defaults to user specified in image metadata if unspecified. May 2329 also be set in SecurityContext. If set in both SecurityContext 2330 and PodSecurityContext, the value specified in SecurityContext 2331 takes precedence for that container. 2332 format: int64 2333 type: integer 2334 seLinuxOptions: 2335 description: SELinuxOptions are the labels to be applied to the 2336 container 2337 properties: 2338 level: 2339 description: Level is SELinux level label that applies to the 2340 container. 2341 type: string 2342 role: 2343 description: Role is a SELinux role label that applies to the 2344 container. 2345 type: string 2346 type: 2347 description: Type is a SELinux type label that applies to the 2348 container. 2349 type: string 2350 user: 2351 description: User is a SELinux user label that applies to the 2352 container. 2353 type: string 2354 supplementalGroups: 2355 description: A list of groups applied to the first process run in 2356 each container, in addition to the container's primary GID. If 2357 unspecified, no groups will be added to any container. 2358 items: 2359 format: int64 2360 type: integer 2361 type: array 2362 sysctls: 2363 description: Sysctls hold a list of namespaced sysctls used for 2364 the pod. Pods with unsupported sysctls (by the container runtime) 2365 might fail to launch. 2366 items: 2367 description: Sysctl defines a kernel parameter to be set 2368 properties: 2369 name: 2370 description: Name of a property to set 2371 type: string 2372 value: 2373 description: Value of a property to set 2374 type: string 2375 required: 2376 - name 2377 - value 2378 type: array 2379 serviceAccountName: 2380 description: ServiceAccountName is the name of the ServiceAccount to 2381 use to run the Prometheus Pods. 2382 type: string 2383 serviceMonitorNamespaceSelector: 2384 description: A label selector is a label query over a set of resources. 2385 The result of matchLabels and matchExpressions are ANDed. An empty 2386 label selector matches all objects. A null label selector matches 2387 no objects. 2388 properties: 2389 matchExpressions: 2390 description: matchExpressions is a list of label selector requirements. 2391 The requirements are ANDed. 2392 items: 2393 description: A label selector requirement is a selector that contains 2394 values, a key, and an operator that relates the key and values. 2395 properties: 2396 key: 2397 description: key is the label key that the selector applies 2398 to. 2399 type: string 2400 operator: 2401 description: operator represents a key's relationship to a 2402 set of values. Valid operators are In, NotIn, Exists and 2403 DoesNotExist. 2404 type: string 2405 values: 2406 description: values is an array of string values. If the operator 2407 is In or NotIn, the values array must be non-empty. If the 2408 operator is Exists or DoesNotExist, the values array must 2409 be empty. This array is replaced during a strategic merge 2410 patch. 2411 items: 2412 type: string 2413 type: array 2414 required: 2415 - key 2416 - operator 2417 type: array 2418 matchLabels: 2419 description: matchLabels is a map of {key,value} pairs. A single 2420 {key,value} in the matchLabels map is equivalent to an element 2421 of matchExpressions, whose key field is "key", the operator is 2422 "In", and the values array contains only "value". The requirements 2423 are ANDed. 2424 type: object 2425 serviceMonitorSelector: 2426 description: A label selector is a label query over a set of resources. 2427 The result of matchLabels and matchExpressions are ANDed. An empty 2428 label selector matches all objects. A null label selector matches 2429 no objects. 2430 properties: 2431 matchExpressions: 2432 description: matchExpressions is a list of label selector requirements. 2433 The requirements are ANDed. 2434 items: 2435 description: A label selector requirement is a selector that contains 2436 values, a key, and an operator that relates the key and values. 2437 properties: 2438 key: 2439 description: key is the label key that the selector applies 2440 to. 2441 type: string 2442 operator: 2443 description: operator represents a key's relationship to a 2444 set of values. Valid operators are In, NotIn, Exists and 2445 DoesNotExist. 2446 type: string 2447 values: 2448 description: values is an array of string values. If the operator 2449 is In or NotIn, the values array must be non-empty. If the 2450 operator is Exists or DoesNotExist, the values array must 2451 be empty. This array is replaced during a strategic merge 2452 patch. 2453 items: 2454 type: string 2455 type: array 2456 required: 2457 - key 2458 - operator 2459 type: array 2460 matchLabels: 2461 description: matchLabels is a map of {key,value} pairs. A single 2462 {key,value} in the matchLabels map is equivalent to an element 2463 of matchExpressions, whose key field is "key", the operator is 2464 "In", and the values array contains only "value". The requirements 2465 are ANDed. 2466 type: object 2467 sha: 2468 description: SHA of Prometheus container image to be deployed. Defaults 2469 to the value of `version`. Similar to a tag, but the SHA explicitly 2470 deploys an immutable container image. Version and Tag are ignored 2471 if SHA is set. 2472 type: string 2473 storage: 2474 description: StorageSpec defines the configured storage for a group 2475 Prometheus servers. If neither `emptyDir` nor `volumeClaimTemplate` 2476 is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) 2477 will be used. 2478 properties: 2479 emptyDir: 2480 description: Represents an empty directory for a pod. Empty directory 2481 volumes support ownership management and SELinux relabeling. 2482 properties: 2483 medium: 2484 description: 'What type of storage medium should back this directory. 2485 The default is "" which means to use the node''s default medium. 2486 Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir' 2487 type: string 2488 sizeLimit: {} 2489 volumeClaimTemplate: 2490 description: PersistentVolumeClaim is a user's request for and claim 2491 to a persistent volume 2492 properties: 2493 apiVersion: 2494 description: 'APIVersion defines the versioned schema of this 2495 representation of an object. Servers should convert recognized 2496 schemas to the latest internal value, and may reject unrecognized 2497 values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources' 2498 type: string 2499 kind: 2500 description: 'Kind is a string value representing the REST resource 2501 this object represents. Servers may infer this from the endpoint 2502 the client submits requests to. Cannot be updated. In CamelCase. 2503 More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' 2504 type: string 2505 metadata: 2506 description: ObjectMeta is metadata that all persisted resources 2507 must have, which includes all objects users must create. 2508 properties: 2509 annotations: 2510 description: 'Annotations is an unstructured key value map 2511 stored with a resource that may be set by external tools 2512 to store and retrieve arbitrary metadata. They are not 2513 queryable and should be preserved when modifying objects. 2514 More info: http://kubernetes.io/docs/user-guide/annotations' 2515 type: object 2516 clusterName: 2517 description: The name of the cluster which the object belongs 2518 to. This is used to distinguish resources with same name 2519 and namespace in different clusters. This field is not 2520 set anywhere right now and apiserver is going to ignore 2521 it if set in create or update request. 2522 type: string 2523 creationTimestamp: 2524 description: Time is a wrapper around time.Time which supports 2525 correct marshaling to YAML and JSON. Wrappers are provided 2526 for many of the factory methods that the time package 2527 offers. 2528 format: date-time 2529 type: string 2530 deletionGracePeriodSeconds: 2531 description: Number of seconds allowed for this object to 2532 gracefully terminate before it will be removed from the 2533 system. Only set when deletionTimestamp is also set. May 2534 only be shortened. Read-only. 2535 format: int64 2536 type: integer 2537 deletionTimestamp: 2538 description: Time is a wrapper around time.Time which supports 2539 correct marshaling to YAML and JSON. Wrappers are provided 2540 for many of the factory methods that the time package 2541 offers. 2542 format: date-time 2543 type: string 2544 finalizers: 2545 description: Must be empty before the object is deleted 2546 from the registry. Each entry is an identifier for the 2547 responsible component that will remove the entry from 2548 the list. If the deletionTimestamp of the object is non-nil, 2549 entries in this list can only be removed. 2550 items: 2551 type: string 2552 type: array 2553 generateName: 2554 description: |- 2555 GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. 2556 2557 If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). 2558 2559 Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency 2560 type: string 2561 generation: 2562 description: A sequence number representing a specific generation 2563 of the desired state. Populated by the system. Read-only. 2564 format: int64 2565 type: integer 2566 initializers: 2567 description: Initializers tracks the progress of initialization. 2568 properties: 2569 pending: 2570 description: Pending is a list of initializers that 2571 must execute in order before this object is visible. 2572 When the last pending initializer is removed, and 2573 no failing result is set, the initializers struct 2574 will be set to nil and the object is considered as 2575 initialized and visible to all clients. 2576 items: 2577 description: Initializer is information about an initializer 2578 that has not yet completed. 2579 properties: 2580 name: 2581 description: name of the process that is responsible 2582 for initializing this object. 2583 type: string 2584 required: 2585 - name 2586 type: array 2587 result: 2588 description: Status is a return value for calls that 2589 don't return other objects. 2590 properties: 2591 apiVersion: 2592 description: 'APIVersion defines the versioned schema 2593 of this representation of an object. Servers should 2594 convert recognized schemas to the latest internal 2595 value, and may reject unrecognized values. More 2596 info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources' 2597 type: string 2598 code: 2599 description: Suggested HTTP return code for this 2600 status, 0 if not set. 2601 format: int32 2602 type: integer 2603 details: 2604 description: StatusDetails is a set of additional 2605 properties that MAY be set by the server to provide 2606 additional information about a response. The Reason 2607 field of a Status object defines what attributes 2608 will be set. Clients must ignore fields that do 2609 not match the defined type of each attribute, 2610 and should assume that any attribute may be empty, 2611 invalid, or under defined. 2612 properties: 2613 causes: 2614 description: The Causes array includes more 2615 details associated with the StatusReason failure. 2616 Not all StatusReasons may provide detailed 2617 causes. 2618 items: 2619 description: StatusCause provides more information 2620 about an api.Status failure, including cases 2621 when multiple errors are encountered. 2622 properties: 2623 field: 2624 description: |- 2625 The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. 2626 2627 Examples: 2628 "name" - the field "name" on the current resource 2629 "items[0].name" - the field "name" on the first array entry in "items" 2630 type: string 2631 message: 2632 description: A human-readable description 2633 of the cause of the error. This field 2634 may be presented as-is to a reader. 2635 type: string 2636 reason: 2637 description: A machine-readable description 2638 of the cause of the error. If this value 2639 is empty there is no information available. 2640 type: string 2641 type: array 2642 group: 2643 description: The group attribute of the resource 2644 associated with the status StatusReason. 2645 type: string 2646 kind: 2647 description: 'The kind attribute of the resource 2648 associated with the status StatusReason. On 2649 some operations may differ from the requested 2650 resource Kind. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' 2651 type: string 2652 name: 2653 description: The name attribute of the resource 2654 associated with the status StatusReason (when 2655 there is a single name which can be described). 2656 type: string 2657 retryAfterSeconds: 2658 description: If specified, the time in seconds 2659 before the operation should be retried. Some 2660 errors may indicate the client must take an 2661 alternate action - for those errors this field 2662 may indicate how long to wait before taking 2663 the alternate action. 2664 format: int32 2665 type: integer 2666 uid: 2667 description: 'UID of the resource. (when there 2668 is a single resource which can be described). 2669 More info: http://kubernetes.io/docs/user-guide/identifiers#uids' 2670 type: string 2671 kind: 2672 description: 'Kind is a string value representing 2673 the REST resource this object represents. Servers 2674 may infer this from the endpoint the client submits 2675 requests to. Cannot be updated. In CamelCase. 2676 More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' 2677 type: string 2678 message: 2679 description: A human-readable description of the 2680 status of this operation. 2681 type: string 2682 metadata: 2683 description: ListMeta describes metadata that synthetic 2684 resources must have, including lists and various 2685 status objects. A resource may have only one of 2686 {ObjectMeta, ListMeta}. 2687 properties: 2688 continue: 2689 description: continue may be set if the user 2690 set a limit on the number of items returned, 2691 and indicates that the server has more data 2692 available. The value is opaque and may be 2693 used to issue another request to the endpoint 2694 that served this list to retrieve the next 2695 set of available objects. Continuing a consistent 2696 list may not be possible if the server configuration 2697 has changed or more than a few minutes have 2698 passed. The resourceVersion field returned 2699 when using this continue value will be identical 2700 to the value in the first response, unless 2701 you have received this token from an error 2702 message. 2703 type: string 2704 resourceVersion: 2705 description: 'String that identifies the server''s 2706 internal version of this object that can be 2707 used by clients to determine when objects 2708 have changed. Value must be treated as opaque 2709 by clients and passed unmodified back to the 2710 server. Populated by the system. Read-only. 2711 More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency' 2712 type: string 2713 selfLink: 2714 description: selfLink is a URL representing 2715 this object. Populated by the system. Read-only. 2716 type: string 2717 reason: 2718 description: A machine-readable description of why 2719 this operation is in the "Failure" status. If 2720 this value is empty there is no information available. 2721 A Reason clarifies an HTTP status code but does 2722 not override it. 2723 type: string 2724 status: 2725 description: 'Status of the operation. One of: "Success" 2726 or "Failure". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status' 2727 type: string 2728 required: 2729 - pending 2730 labels: 2731 description: 'Map of string keys and values that can be 2732 used to organize and categorize (scope and select) objects. 2733 May match selectors of replication controllers and services. 2734 More info: http://kubernetes.io/docs/user-guide/labels' 2735 type: object 2736 name: 2737 description: 'Name must be unique within a namespace. Is 2738 required when creating resources, although some resources 2739 may allow a client to request the generation of an appropriate 2740 name automatically. Name is primarily intended for creation 2741 idempotence and configuration definition. Cannot be updated. 2742 More info: http://kubernetes.io/docs/user-guide/identifiers#names' 2743 type: string 2744 namespace: 2745 description: |- 2746 Namespace defines the space within each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. 2747 2748 Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces 2749 type: string 2750 ownerReferences: 2751 description: List of objects depended by this object. If 2752 ALL objects in the list have been deleted, this object 2753 will be garbage collected. If this object is managed by 2754 a controller, then an entry in this list will point to 2755 this controller, with the controller field set to true. 2756 There cannot be more than one managing controller. 2757 items: 2758 description: OwnerReference contains enough information 2759 to let you identify an owning object. An owning object 2760 must be in the same namespace as the dependent, or be 2761 cluster-scoped, so there is no namespace field. 2762 properties: 2763 apiVersion: 2764 description: API version of the referent. 2765 type: string 2766 blockOwnerDeletion: 2767 description: If true, AND if the owner has the "foregroundDeletion" 2768 finalizer, then the owner cannot be deleted from 2769 the key-value store until this reference is removed. 2770 Defaults to false. To set this field, a user needs 2771 "delete" permission of the owner, otherwise 422 2772 (Unprocessable Entity) will be returned. 2773 type: boolean 2774 controller: 2775 description: If true, this reference points to the 2776 managing controller. 2777 type: boolean 2778 kind: 2779 description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' 2780 type: string 2781 name: 2782 description: 'Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names' 2783 type: string 2784 uid: 2785 description: 'UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids' 2786 type: string 2787 required: 2788 - apiVersion 2789 - kind 2790 - name 2791 - uid 2792 type: array 2793 resourceVersion: 2794 description: |- 2795 An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. 2796 2797 Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency 2798 type: string 2799 selfLink: 2800 description: SelfLink is a URL representing this object. 2801 Populated by the system. Read-only. 2802 type: string 2803 uid: 2804 description: |- 2805 UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. 2806 2807 Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids 2808 type: string 2809 spec: 2810 description: PersistentVolumeClaimSpec describes the common 2811 attributes of storage devices and allows a Source for provider-specific 2812 attributes 2813 properties: 2814 accessModes: 2815 description: 'AccessModes contains the desired access modes 2816 the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1' 2817 items: 2818 type: string 2819 type: array 2820 dataSource: 2821 description: TypedLocalObjectReference contains enough information 2822 to let you locate the typed referenced object inside the 2823 same namespace. 2824 properties: 2825 apiGroup: 2826 description: APIGroup is the group for the resource 2827 being referenced. If APIGroup is not specified, the 2828 specified Kind must be in the core API group. For 2829 any other third-party types, APIGroup is required. 2830 type: string 2831 kind: 2832 description: Kind is the type of resource being referenced 2833 type: string 2834 name: 2835 description: Name is the name of resource being referenced 2836 type: string 2837 required: 2838 - kind 2839 - name 2840 resources: 2841 description: ResourceRequirements describes the compute 2842 resource requirements. 2843 properties: 2844 limits: 2845 description: 'Limits describes the maximum amount of 2846 compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' 2847 type: object 2848 requests: 2849 description: 'Requests describes the minimum amount 2850 of compute resources required. If Requests is omitted 2851 for a container, it defaults to Limits if that is 2852 explicitly specified, otherwise to an implementation-defined 2853 value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' 2854 type: object 2855 selector: 2856 description: A label selector is a label query over a set 2857 of resources. The result of matchLabels and matchExpressions 2858 are ANDed. An empty label selector matches all objects. 2859 A null label selector matches no objects. 2860 properties: 2861 matchExpressions: 2862 description: matchExpressions is a list of label selector 2863 requirements. The requirements are ANDed. 2864 items: 2865 description: A label selector requirement is a selector 2866 that contains values, a key, and an operator that 2867 relates the key and values. 2868 properties: 2869 key: 2870 description: key is the label key that the selector 2871 applies to. 2872 type: string 2873 operator: 2874 description: operator represents a key's relationship 2875 to a set of values. Valid operators are In, 2876 NotIn, Exists and DoesNotExist. 2877 type: string 2878 values: 2879 description: values is an array of string values. 2880 If the operator is In or NotIn, the values array 2881 must be non-empty. If the operator is Exists 2882 or DoesNotExist, the values array must be empty. 2883 This array is replaced during a strategic merge 2884 patch. 2885 items: 2886 type: string 2887 type: array 2888 required: 2889 - key 2890 - operator 2891 type: array 2892 matchLabels: 2893 description: matchLabels is a map of {key,value} pairs. 2894 A single {key,value} in the matchLabels map is equivalent 2895 to an element of matchExpressions, whose key field 2896 is "key", the operator is "In", and the values array 2897 contains only "value". The requirements are ANDed. 2898 type: object 2899 storageClassName: 2900 description: 'Name of the StorageClass required by the claim. 2901 More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1' 2902 type: string 2903 volumeMode: 2904 description: volumeMode defines what type of volume is required 2905 by the claim. Value of Filesystem is implied when not 2906 included in claim spec. This is a beta feature. 2907 type: string 2908 volumeName: 2909 description: VolumeName is the binding reference to the 2910 PersistentVolume backing this claim. 2911 type: string 2912 status: 2913 description: PersistentVolumeClaimStatus is the current status 2914 of a persistent volume claim. 2915 properties: 2916 accessModes: 2917 description: 'AccessModes contains the actual access modes 2918 the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1' 2919 items: 2920 type: string 2921 type: array 2922 capacity: 2923 description: Represents the actual resources of the underlying 2924 volume. 2925 type: object 2926 conditions: 2927 description: Current Condition of persistent volume claim. 2928 If underlying persistent volume is being resized then 2929 the Condition will be set to 'ResizeStarted'. 2930 items: 2931 description: PersistentVolumeClaimCondition contails details 2932 about state of pvc 2933 properties: 2934 lastProbeTime: 2935 description: Time is a wrapper around time.Time which 2936 supports correct marshaling to YAML and JSON. Wrappers 2937 are provided for many of the factory methods that 2938 the time package offers. 2939 format: date-time 2940 type: string 2941 lastTransitionTime: 2942 description: Time is a wrapper around time.Time which 2943 supports correct marshaling to YAML and JSON. Wrappers 2944 are provided for many of the factory methods that 2945 the time package offers. 2946 format: date-time 2947 type: string 2948 message: 2949 description: Human-readable message indicating details 2950 about last transition. 2951 type: string 2952 reason: 2953 description: Unique, this should be a short, machine 2954 understandable string that gives the reason for 2955 condition's last transition. If it reports "ResizeStarted" 2956 that means the underlying persistent volume is being 2957 resized. 2958 type: string 2959 status: 2960 type: string 2961 type: 2962 type: string 2963 required: 2964 - type 2965 - status 2966 type: array 2967 phase: 2968 description: Phase represents the current phase of PersistentVolumeClaim. 2969 type: string 2970 tag: 2971 description: Tag of Prometheus container image to be deployed. Defaults 2972 to the value of `version`. Version is ignored if Tag is set. 2973 type: string 2974 thanos: 2975 description: ThanosSpec defines parameters for a Prometheus server within 2976 a Thanos deployment. 2977 properties: 2978 baseImage: 2979 description: Thanos base image if other than default. 2980 type: string 2981 clusterAdvertiseAddress: 2982 description: Explicit (external) ip:port address to advertise for 2983 gossip in gossip cluster. Used internally for membership only. 2984 type: string 2985 gcs: 2986 description: 'Deprecated: ThanosGCSSpec should be configured with 2987 an ObjectStorageConfig secret starting with Thanos v0.2.0. ThanosGCSSpec 2988 will be removed.' 2989 properties: 2990 bucket: 2991 description: Google Cloud Storage bucket name for stored blocks. 2992 If empty it won't store any block inside Google Cloud Storage. 2993 type: string 2994 credentials: 2995 description: SecretKeySelector selects a key of a Secret. 2996 properties: 2997 key: 2998 description: The key of the secret to select from. Must 2999 be a valid secret key. 3000 type: string 3001 name: 3002 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 3003 type: string 3004 optional: 3005 description: Specify whether the Secret or it's key must 3006 be defined 3007 type: boolean 3008 required: 3009 - key 3010 grpcAdvertiseAddress: 3011 description: Explicit (external) host:port address to advertise 3012 for gRPC StoreAPI in gossip cluster. If empty, 'grpc-address' 3013 will be used. 3014 type: string 3015 image: 3016 description: Image if specified has precedence over baseImage, tag 3017 and sha combinations. Specifying the version is still necessary 3018 to ensure the Prometheus Operator knows what version of Thanos 3019 is being configured. 3020 type: string 3021 objectStorageConfig: 3022 description: SecretKeySelector selects a key of a Secret. 3023 properties: 3024 key: 3025 description: The key of the secret to select from. Must be 3026 a valid secret key. 3027 type: string 3028 name: 3029 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 3030 type: string 3031 optional: 3032 description: Specify whether the Secret or it's key must be 3033 defined 3034 type: boolean 3035 required: 3036 - key 3037 peers: 3038 description: Peers is a DNS name for Thanos to discover peers through. 3039 type: string 3040 resources: 3041 description: ResourceRequirements describes the compute resource 3042 requirements. 3043 properties: 3044 limits: 3045 description: 'Limits describes the maximum amount of compute 3046 resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' 3047 type: object 3048 requests: 3049 description: 'Requests describes the minimum amount of compute 3050 resources required. If Requests is omitted for a container, 3051 it defaults to Limits if that is explicitly specified, otherwise 3052 to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/' 3053 type: object 3054 s3: 3055 description: 'Deprecated: ThanosS3Spec should be configured with 3056 an ObjectStorageConfig secret starting with Thanos v0.2.0. ThanosS3Spec 3057 will be removed.' 3058 properties: 3059 accessKey: 3060 description: SecretKeySelector selects a key of a Secret. 3061 properties: 3062 key: 3063 description: The key of the secret to select from. Must 3064 be a valid secret key. 3065 type: string 3066 name: 3067 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 3068 type: string 3069 optional: 3070 description: Specify whether the Secret or it's key must 3071 be defined 3072 type: boolean 3073 required: 3074 - key 3075 bucket: 3076 description: S3-Compatible API bucket name for stored blocks. 3077 type: string 3078 encryptsse: 3079 description: Whether to use Server Side Encryption 3080 type: boolean 3081 endpoint: 3082 description: S3-Compatible API endpoint for stored blocks. 3083 type: string 3084 insecure: 3085 description: Whether to use an insecure connection with an S3-Compatible 3086 API. 3087 type: boolean 3088 secretKey: 3089 description: SecretKeySelector selects a key of a Secret. 3090 properties: 3091 key: 3092 description: The key of the secret to select from. Must 3093 be a valid secret key. 3094 type: string 3095 name: 3096 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' 3097 type: string 3098 optional: 3099 description: Specify whether the Secret or it's key must 3100 be defined 3101 type: boolean 3102 required: 3103 - key 3104 signatureVersion2: 3105 description: Whether to use S3 Signature Version 2; otherwise 3106 Signature Version 4 will be used. 3107 type: boolean 3108 sha: 3109 description: SHA of Thanos container image to be deployed. Defaults 3110 to the value of `version`. Similar to a tag, but the SHA explicitly 3111 deploys an immutable container image. Version and Tag are ignored 3112 if SHA is set. 3113 type: string 3114 tag: 3115 description: Tag of Thanos sidecar container image to be deployed. 3116 Defaults to the value of `version`. Version is ignored if Tag 3117 is set. 3118 type: string 3119 version: 3120 description: Version describes the version of Thanos to use. 3121 type: string 3122 tolerations: 3123 description: If specified, the pod's tolerations. 3124 items: 3125 description: The pod this Toleration is attached to tolerates any 3126 taint that matches the triple <key,value,effect> using the matching 3127 operator <operator>. 3128 properties: 3129 effect: 3130 description: Effect indicates the taint effect to match. Empty 3131 means match all taint effects. When specified, allowed values 3132 are NoSchedule, PreferNoSchedule and NoExecute. 3133 type: string 3134 key: 3135 description: Key is the taint key that the toleration applies 3136 to. Empty means match all taint keys. If the key is empty, operator 3137 must be Exists; this combination means to match all values and 3138 all keys. 3139 type: string 3140 operator: 3141 description: Operator represents a key's relationship to the value. 3142 Valid operators are Exists and Equal. Defaults to Equal. Exists 3143 is equivalent to wildcard for value, so that a pod can tolerate 3144 all taints of a particular category. 3145 type: string 3146 tolerationSeconds: 3147 description: TolerationSeconds represents the period of time the 3148 toleration (which must be of effect NoExecute, otherwise this 3149 field is ignored) tolerates the taint. By default, it is not 3150 set, which means tolerate the taint forever (do not evict). 3151 Zero and negative values will be treated as 0 (evict immediately) 3152 by the system. 3153 format: int64 3154 type: integer 3155 value: 3156 description: Value is the taint value the toleration matches to. 3157 If the operator is Exists, the value should be empty, otherwise 3158 just a regular string. 3159 type: string 3160 type: array 3161 version: 3162 description: Version of Prometheus to be deployed. 3163 type: string 3164 status: 3165 description: 'PrometheusStatus is the most recent observed status of the 3166 Prometheus cluster. Read-only. Not included when requesting from the apiserver, 3167 only from the Prometheus Operator API itself. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#spec-and-status' 3168 properties: 3169 availableReplicas: 3170 description: Total number of available pods (ready for at least minReadySeconds) 3171 targeted by this Prometheus deployment. 3172 format: int32 3173 type: integer 3174 paused: 3175 description: Represents whether any actions on the underlaying managed 3176 objects are being performed. Only delete actions will be performed. 3177 type: boolean 3178 replicas: 3179 description: Total number of non-terminated pods targeted by this Prometheus 3180 deployment (their labels match the selector). 3181 format: int32 3182 type: integer 3183 unavailableReplicas: 3184 description: Total number of unavailable pods targeted by this Prometheus 3185 deployment. 3186 format: int32 3187 type: integer 3188 updatedReplicas: 3189 description: Total number of non-terminated pods targeted by this Prometheus 3190 deployment that have the desired version spec. 3191 format: int32 3192 type: integer 3193 required: 3194 - paused 3195 - replicas 3196 - updatedReplicas 3197 - availableReplicas 3198 - unavailableReplicas 3199 version: v1