Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [diff] [blame^] | 1 | /* |
| 2 | Copyright The Kubernetes Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | |
| 18 | // This file was autogenerated by go-to-protobuf. Do not edit it manually! |
| 19 | |
| 20 | syntax = 'proto2'; |
| 21 | |
| 22 | package k8s.io.api.extensions.v1beta1; |
| 23 | |
| 24 | import "k8s.io/api/core/v1/generated.proto"; |
| 25 | import "k8s.io/api/policy/v1beta1/generated.proto"; |
| 26 | import "k8s.io/apimachinery/pkg/api/resource/generated.proto"; |
| 27 | import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; |
| 28 | import "k8s.io/apimachinery/pkg/runtime/generated.proto"; |
| 29 | import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; |
| 30 | import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; |
| 31 | |
| 32 | // Package-wide variables from generator "generated". |
| 33 | option go_package = "v1beta1"; |
| 34 | |
| 35 | // AllowedFlexVolume represents a single Flexvolume that is allowed to be used. |
| 36 | // Deprecated: use AllowedFlexVolume from policy API Group instead. |
| 37 | message AllowedFlexVolume { |
| 38 | // driver is the name of the Flexvolume driver. |
| 39 | optional string driver = 1; |
| 40 | } |
| 41 | |
| 42 | // AllowedHostPath defines the host volume conditions that will be enabled by a policy |
| 43 | // for pods to use. It requires the path prefix to be defined. |
| 44 | // Deprecated: use AllowedHostPath from policy API Group instead. |
| 45 | message AllowedHostPath { |
| 46 | // pathPrefix is the path prefix that the host volume must match. |
| 47 | // It does not support `*`. |
| 48 | // Trailing slashes are trimmed when validating the path prefix with a host path. |
| 49 | // |
| 50 | // Examples: |
| 51 | // `/foo` would allow `/foo`, `/foo/` and `/foo/bar` |
| 52 | // `/foo` would not allow `/food` or `/etc/foo` |
| 53 | optional string pathPrefix = 1; |
| 54 | |
| 55 | // when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. |
| 56 | // +optional |
| 57 | optional bool readOnly = 2; |
| 58 | } |
| 59 | |
| 60 | message CustomMetricCurrentStatus { |
| 61 | // Custom Metric name. |
| 62 | optional string name = 1; |
| 63 | |
| 64 | // Custom Metric value (average). |
| 65 | optional k8s.io.apimachinery.pkg.api.resource.Quantity value = 2; |
| 66 | } |
| 67 | |
| 68 | message CustomMetricCurrentStatusList { |
| 69 | repeated CustomMetricCurrentStatus items = 1; |
| 70 | } |
| 71 | |
| 72 | // Alpha-level support for Custom Metrics in HPA (as annotations). |
| 73 | message CustomMetricTarget { |
| 74 | // Custom Metric name. |
| 75 | optional string name = 1; |
| 76 | |
| 77 | // Custom Metric value (average). |
| 78 | optional k8s.io.apimachinery.pkg.api.resource.Quantity value = 2; |
| 79 | } |
| 80 | |
| 81 | message CustomMetricTargetList { |
| 82 | repeated CustomMetricTarget items = 1; |
| 83 | } |
| 84 | |
| 85 | // DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for |
| 86 | // more information. |
| 87 | // DaemonSet represents the configuration of a daemon set. |
| 88 | message DaemonSet { |
| 89 | // Standard object's metadata. |
| 90 | // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 91 | // +optional |
| 92 | optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 93 | |
| 94 | // The desired behavior of this daemon set. |
| 95 | // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status |
| 96 | // +optional |
| 97 | optional DaemonSetSpec spec = 2; |
| 98 | |
| 99 | // The current status of this daemon set. This data may be |
| 100 | // out of date by some window of time. |
| 101 | // Populated by the system. |
| 102 | // Read-only. |
| 103 | // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status |
| 104 | // +optional |
| 105 | optional DaemonSetStatus status = 3; |
| 106 | } |
| 107 | |
| 108 | // DaemonSetCondition describes the state of a DaemonSet at a certain point. |
| 109 | message DaemonSetCondition { |
| 110 | // Type of DaemonSet condition. |
| 111 | optional string type = 1; |
| 112 | |
| 113 | // Status of the condition, one of True, False, Unknown. |
| 114 | optional string status = 2; |
| 115 | |
| 116 | // Last time the condition transitioned from one status to another. |
| 117 | // +optional |
| 118 | optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; |
| 119 | |
| 120 | // The reason for the condition's last transition. |
| 121 | // +optional |
| 122 | optional string reason = 4; |
| 123 | |
| 124 | // A human readable message indicating details about the transition. |
| 125 | // +optional |
| 126 | optional string message = 5; |
| 127 | } |
| 128 | |
| 129 | // DaemonSetList is a collection of daemon sets. |
| 130 | message DaemonSetList { |
| 131 | // Standard list metadata. |
| 132 | // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 133 | // +optional |
| 134 | optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; |
| 135 | |
| 136 | // A list of daemon sets. |
| 137 | repeated DaemonSet items = 2; |
| 138 | } |
| 139 | |
| 140 | // DaemonSetSpec is the specification of a daemon set. |
| 141 | message DaemonSetSpec { |
| 142 | // A label query over pods that are managed by the daemon set. |
| 143 | // Must match in order to be controlled. |
| 144 | // If empty, defaulted to labels on Pod template. |
| 145 | // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors |
| 146 | // +optional |
| 147 | optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; |
| 148 | |
| 149 | // An object that describes the pod that will be created. |
| 150 | // The DaemonSet will create exactly one copy of this pod on every node |
| 151 | // that matches the template's node selector (or on every node if no node |
| 152 | // selector is specified). |
| 153 | // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template |
| 154 | optional k8s.io.api.core.v1.PodTemplateSpec template = 2; |
| 155 | |
| 156 | // An update strategy to replace existing DaemonSet pods with new pods. |
| 157 | // +optional |
| 158 | optional DaemonSetUpdateStrategy updateStrategy = 3; |
| 159 | |
| 160 | // The minimum number of seconds for which a newly created DaemonSet pod should |
| 161 | // be ready without any of its container crashing, for it to be considered |
| 162 | // available. Defaults to 0 (pod will be considered available as soon as it |
| 163 | // is ready). |
| 164 | // +optional |
| 165 | optional int32 minReadySeconds = 4; |
| 166 | |
| 167 | // DEPRECATED. |
| 168 | // A sequence number representing a specific generation of the template. |
| 169 | // Populated by the system. It can be set only during the creation. |
| 170 | // +optional |
| 171 | optional int64 templateGeneration = 5; |
| 172 | |
| 173 | // The number of old history to retain to allow rollback. |
| 174 | // This is a pointer to distinguish between explicit zero and not specified. |
| 175 | // Defaults to 10. |
| 176 | // +optional |
| 177 | optional int32 revisionHistoryLimit = 6; |
| 178 | } |
| 179 | |
| 180 | // DaemonSetStatus represents the current status of a daemon set. |
| 181 | message DaemonSetStatus { |
| 182 | // The number of nodes that are running at least 1 |
| 183 | // daemon pod and are supposed to run the daemon pod. |
| 184 | // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ |
| 185 | optional int32 currentNumberScheduled = 1; |
| 186 | |
| 187 | // The number of nodes that are running the daemon pod, but are |
| 188 | // not supposed to run the daemon pod. |
| 189 | // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ |
| 190 | optional int32 numberMisscheduled = 2; |
| 191 | |
| 192 | // The total number of nodes that should be running the daemon |
| 193 | // pod (including nodes correctly running the daemon pod). |
| 194 | // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/ |
| 195 | optional int32 desiredNumberScheduled = 3; |
| 196 | |
| 197 | // The number of nodes that should be running the daemon pod and have one |
| 198 | // or more of the daemon pod running and ready. |
| 199 | optional int32 numberReady = 4; |
| 200 | |
| 201 | // The most recent generation observed by the daemon set controller. |
| 202 | // +optional |
| 203 | optional int64 observedGeneration = 5; |
| 204 | |
| 205 | // The total number of nodes that are running updated daemon pod |
| 206 | // +optional |
| 207 | optional int32 updatedNumberScheduled = 6; |
| 208 | |
| 209 | // The number of nodes that should be running the |
| 210 | // daemon pod and have one or more of the daemon pod running and |
| 211 | // available (ready for at least spec.minReadySeconds) |
| 212 | // +optional |
| 213 | optional int32 numberAvailable = 7; |
| 214 | |
| 215 | // The number of nodes that should be running the |
| 216 | // daemon pod and have none of the daemon pod running and available |
| 217 | // (ready for at least spec.minReadySeconds) |
| 218 | // +optional |
| 219 | optional int32 numberUnavailable = 8; |
| 220 | |
| 221 | // Count of hash collisions for the DaemonSet. The DaemonSet controller |
| 222 | // uses this field as a collision avoidance mechanism when it needs to |
| 223 | // create the name for the newest ControllerRevision. |
| 224 | // +optional |
| 225 | optional int32 collisionCount = 9; |
| 226 | |
| 227 | // Represents the latest available observations of a DaemonSet's current state. |
| 228 | // +optional |
| 229 | // +patchMergeKey=type |
| 230 | // +patchStrategy=merge |
| 231 | repeated DaemonSetCondition conditions = 10; |
| 232 | } |
| 233 | |
| 234 | message DaemonSetUpdateStrategy { |
| 235 | // Type of daemon set update. Can be "RollingUpdate" or "OnDelete". |
| 236 | // Default is OnDelete. |
| 237 | // +optional |
| 238 | optional string type = 1; |
| 239 | |
| 240 | // Rolling update config params. Present only if type = "RollingUpdate". |
| 241 | // --- |
| 242 | // TODO: Update this to follow our convention for oneOf, whatever we decide it |
| 243 | // to be. Same as Deployment `strategy.rollingUpdate`. |
| 244 | // See https://github.com/kubernetes/kubernetes/issues/35345 |
| 245 | // +optional |
| 246 | optional RollingUpdateDaemonSet rollingUpdate = 2; |
| 247 | } |
| 248 | |
| 249 | // DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for |
| 250 | // more information. |
| 251 | // Deployment enables declarative updates for Pods and ReplicaSets. |
| 252 | message Deployment { |
| 253 | // Standard object metadata. |
| 254 | // +optional |
| 255 | optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 256 | |
| 257 | // Specification of the desired behavior of the Deployment. |
| 258 | // +optional |
| 259 | optional DeploymentSpec spec = 2; |
| 260 | |
| 261 | // Most recently observed status of the Deployment. |
| 262 | // +optional |
| 263 | optional DeploymentStatus status = 3; |
| 264 | } |
| 265 | |
| 266 | // DeploymentCondition describes the state of a deployment at a certain point. |
| 267 | message DeploymentCondition { |
| 268 | // Type of deployment condition. |
| 269 | optional string type = 1; |
| 270 | |
| 271 | // Status of the condition, one of True, False, Unknown. |
| 272 | optional string status = 2; |
| 273 | |
| 274 | // The last time this condition was updated. |
| 275 | optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; |
| 276 | |
| 277 | // Last time the condition transitioned from one status to another. |
| 278 | optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; |
| 279 | |
| 280 | // The reason for the condition's last transition. |
| 281 | optional string reason = 4; |
| 282 | |
| 283 | // A human readable message indicating details about the transition. |
| 284 | optional string message = 5; |
| 285 | } |
| 286 | |
| 287 | // DeploymentList is a list of Deployments. |
| 288 | message DeploymentList { |
| 289 | // Standard list metadata. |
| 290 | // +optional |
| 291 | optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; |
| 292 | |
| 293 | // Items is the list of Deployments. |
| 294 | repeated Deployment items = 2; |
| 295 | } |
| 296 | |
| 297 | // DEPRECATED. |
| 298 | // DeploymentRollback stores the information required to rollback a deployment. |
| 299 | message DeploymentRollback { |
| 300 | // Required: This must match the Name of a deployment. |
| 301 | optional string name = 1; |
| 302 | |
| 303 | // The annotations to be updated to a deployment |
| 304 | // +optional |
| 305 | map<string, string> updatedAnnotations = 2; |
| 306 | |
| 307 | // The config of this deployment rollback. |
| 308 | optional RollbackConfig rollbackTo = 3; |
| 309 | } |
| 310 | |
| 311 | // DeploymentSpec is the specification of the desired behavior of the Deployment. |
| 312 | message DeploymentSpec { |
| 313 | // Number of desired pods. This is a pointer to distinguish between explicit |
| 314 | // zero and not specified. Defaults to 1. |
| 315 | // +optional |
| 316 | optional int32 replicas = 1; |
| 317 | |
| 318 | // Label selector for pods. Existing ReplicaSets whose pods are |
| 319 | // selected by this will be the ones affected by this deployment. |
| 320 | // +optional |
| 321 | optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; |
| 322 | |
| 323 | // Template describes the pods that will be created. |
| 324 | optional k8s.io.api.core.v1.PodTemplateSpec template = 3; |
| 325 | |
| 326 | // The deployment strategy to use to replace existing pods with new ones. |
| 327 | // +optional |
| 328 | // +patchStrategy=retainKeys |
| 329 | optional DeploymentStrategy strategy = 4; |
| 330 | |
| 331 | // Minimum number of seconds for which a newly created pod should be ready |
| 332 | // without any of its container crashing, for it to be considered available. |
| 333 | // Defaults to 0 (pod will be considered available as soon as it is ready) |
| 334 | // +optional |
| 335 | optional int32 minReadySeconds = 5; |
| 336 | |
| 337 | // The number of old ReplicaSets to retain to allow rollback. |
| 338 | // This is a pointer to distinguish between explicit zero and not specified. |
| 339 | // +optional |
| 340 | optional int32 revisionHistoryLimit = 6; |
| 341 | |
| 342 | // Indicates that the deployment is paused and will not be processed by the |
| 343 | // deployment controller. |
| 344 | // +optional |
| 345 | optional bool paused = 7; |
| 346 | |
| 347 | // DEPRECATED. |
| 348 | // The config this deployment is rolling back to. Will be cleared after rollback is done. |
| 349 | // +optional |
| 350 | optional RollbackConfig rollbackTo = 8; |
| 351 | |
| 352 | // The maximum time in seconds for a deployment to make progress before it |
| 353 | // is considered to be failed. The deployment controller will continue to |
| 354 | // process failed deployments and a condition with a ProgressDeadlineExceeded |
| 355 | // reason will be surfaced in the deployment status. Note that progress will |
| 356 | // not be estimated during the time a deployment is paused. This is not set |
| 357 | // by default. |
| 358 | // +optional |
| 359 | optional int32 progressDeadlineSeconds = 9; |
| 360 | } |
| 361 | |
| 362 | // DeploymentStatus is the most recently observed status of the Deployment. |
| 363 | message DeploymentStatus { |
| 364 | // The generation observed by the deployment controller. |
| 365 | // +optional |
| 366 | optional int64 observedGeneration = 1; |
| 367 | |
| 368 | // Total number of non-terminated pods targeted by this deployment (their labels match the selector). |
| 369 | // +optional |
| 370 | optional int32 replicas = 2; |
| 371 | |
| 372 | // Total number of non-terminated pods targeted by this deployment that have the desired template spec. |
| 373 | // +optional |
| 374 | optional int32 updatedReplicas = 3; |
| 375 | |
| 376 | // Total number of ready pods targeted by this deployment. |
| 377 | // +optional |
| 378 | optional int32 readyReplicas = 7; |
| 379 | |
| 380 | // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. |
| 381 | // +optional |
| 382 | optional int32 availableReplicas = 4; |
| 383 | |
| 384 | // Total number of unavailable pods targeted by this deployment. This is the total number of |
| 385 | // pods that are still required for the deployment to have 100% available capacity. They may |
| 386 | // either be pods that are running but not yet available or pods that still have not been created. |
| 387 | // +optional |
| 388 | optional int32 unavailableReplicas = 5; |
| 389 | |
| 390 | // Represents the latest available observations of a deployment's current state. |
| 391 | // +patchMergeKey=type |
| 392 | // +patchStrategy=merge |
| 393 | repeated DeploymentCondition conditions = 6; |
| 394 | |
| 395 | // Count of hash collisions for the Deployment. The Deployment controller uses this |
| 396 | // field as a collision avoidance mechanism when it needs to create the name for the |
| 397 | // newest ReplicaSet. |
| 398 | // +optional |
| 399 | optional int32 collisionCount = 8; |
| 400 | } |
| 401 | |
| 402 | // DeploymentStrategy describes how to replace existing pods with new ones. |
| 403 | message DeploymentStrategy { |
| 404 | // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. |
| 405 | // +optional |
| 406 | optional string type = 1; |
| 407 | |
| 408 | // Rolling update config params. Present only if DeploymentStrategyType = |
| 409 | // RollingUpdate. |
| 410 | // --- |
| 411 | // TODO: Update this to follow our convention for oneOf, whatever we decide it |
| 412 | // to be. |
| 413 | // +optional |
| 414 | optional RollingUpdateDeployment rollingUpdate = 2; |
| 415 | } |
| 416 | |
| 417 | // FSGroupStrategyOptions defines the strategy type and options used to create the strategy. |
| 418 | // Deprecated: use FSGroupStrategyOptions from policy API Group instead. |
| 419 | message FSGroupStrategyOptions { |
| 420 | // rule is the strategy that will dictate what FSGroup is used in the SecurityContext. |
| 421 | // +optional |
| 422 | optional string rule = 1; |
| 423 | |
| 424 | // ranges are the allowed ranges of fs groups. If you would like to force a single |
| 425 | // fs group then supply a single range with the same start and end. Required for MustRunAs. |
| 426 | // +optional |
| 427 | repeated IDRange ranges = 2; |
| 428 | } |
| 429 | |
| 430 | // HTTPIngressPath associates a path regex with a backend. Incoming urls matching |
| 431 | // the path are forwarded to the backend. |
| 432 | message HTTPIngressPath { |
| 433 | // Path is an extended POSIX regex as defined by IEEE Std 1003.1, |
| 434 | // (i.e this follows the egrep/unix syntax, not the perl syntax) |
| 435 | // matched against the path of an incoming request. Currently it can |
| 436 | // contain characters disallowed from the conventional "path" |
| 437 | // part of a URL as defined by RFC 3986. Paths must begin with |
| 438 | // a '/'. If unspecified, the path defaults to a catch all sending |
| 439 | // traffic to the backend. |
| 440 | // +optional |
| 441 | optional string path = 1; |
| 442 | |
| 443 | // Backend defines the referenced service endpoint to which the traffic |
| 444 | // will be forwarded to. |
| 445 | optional IngressBackend backend = 2; |
| 446 | } |
| 447 | |
| 448 | // HTTPIngressRuleValue is a list of http selectors pointing to backends. |
| 449 | // In the example: http://<host>/<path>?<searchpart> -> backend where |
| 450 | // where parts of the url correspond to RFC 3986, this resource will be used |
| 451 | // to match against everything after the last '/' and before the first '?' |
| 452 | // or '#'. |
| 453 | message HTTPIngressRuleValue { |
| 454 | // A collection of paths that map requests to backends. |
| 455 | repeated HTTPIngressPath paths = 1; |
| 456 | } |
| 457 | |
| 458 | // HostPortRange defines a range of host ports that will be enabled by a policy |
| 459 | // for pods to use. It requires both the start and end to be defined. |
| 460 | // Deprecated: use HostPortRange from policy API Group instead. |
| 461 | message HostPortRange { |
| 462 | // min is the start of the range, inclusive. |
| 463 | optional int32 min = 1; |
| 464 | |
| 465 | // max is the end of the range, inclusive. |
| 466 | optional int32 max = 2; |
| 467 | } |
| 468 | |
| 469 | // IDRange provides a min/max of an allowed range of IDs. |
| 470 | // Deprecated: use IDRange from policy API Group instead. |
| 471 | message IDRange { |
| 472 | // min is the start of the range, inclusive. |
| 473 | optional int64 min = 1; |
| 474 | |
| 475 | // max is the end of the range, inclusive. |
| 476 | optional int64 max = 2; |
| 477 | } |
| 478 | |
| 479 | // DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. |
| 480 | // IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods |
| 481 | // matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should |
| 482 | // not be included within this rule. |
| 483 | message IPBlock { |
| 484 | // CIDR is a string representing the IP Block |
| 485 | // Valid examples are "192.168.1.1/24" |
| 486 | optional string cidr = 1; |
| 487 | |
| 488 | // Except is a slice of CIDRs that should not be included within an IP Block |
| 489 | // Valid examples are "192.168.1.1/24" |
| 490 | // Except values will be rejected if they are outside the CIDR range |
| 491 | // +optional |
| 492 | repeated string except = 2; |
| 493 | } |
| 494 | |
| 495 | // Ingress is a collection of rules that allow inbound connections to reach the |
| 496 | // endpoints defined by a backend. An Ingress can be configured to give services |
| 497 | // externally-reachable urls, load balance traffic, terminate SSL, offer name |
| 498 | // based virtual hosting etc. |
| 499 | message Ingress { |
| 500 | // Standard object's metadata. |
| 501 | // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 502 | // +optional |
| 503 | optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 504 | |
| 505 | // Spec is the desired state of the Ingress. |
| 506 | // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status |
| 507 | // +optional |
| 508 | optional IngressSpec spec = 2; |
| 509 | |
| 510 | // Status is the current state of the Ingress. |
| 511 | // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status |
| 512 | // +optional |
| 513 | optional IngressStatus status = 3; |
| 514 | } |
| 515 | |
| 516 | // IngressBackend describes all endpoints for a given service and port. |
| 517 | message IngressBackend { |
| 518 | // Specifies the name of the referenced service. |
| 519 | optional string serviceName = 1; |
| 520 | |
| 521 | // Specifies the port of the referenced service. |
| 522 | optional k8s.io.apimachinery.pkg.util.intstr.IntOrString servicePort = 2; |
| 523 | } |
| 524 | |
| 525 | // IngressList is a collection of Ingress. |
| 526 | message IngressList { |
| 527 | // Standard object's metadata. |
| 528 | // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 529 | // +optional |
| 530 | optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; |
| 531 | |
| 532 | // Items is the list of Ingress. |
| 533 | repeated Ingress items = 2; |
| 534 | } |
| 535 | |
| 536 | // IngressRule represents the rules mapping the paths under a specified host to |
| 537 | // the related backend services. Incoming requests are first evaluated for a host |
| 538 | // match, then routed to the backend associated with the matching IngressRuleValue. |
| 539 | message IngressRule { |
| 540 | // Host is the fully qualified domain name of a network host, as defined |
| 541 | // by RFC 3986. Note the following deviations from the "host" part of the |
| 542 | // URI as defined in the RFC: |
| 543 | // 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the |
| 544 | // IP in the Spec of the parent Ingress. |
| 545 | // 2. The `:` delimiter is not respected because ports are not allowed. |
| 546 | // Currently the port of an Ingress is implicitly :80 for http and |
| 547 | // :443 for https. |
| 548 | // Both these may change in the future. |
| 549 | // Incoming requests are matched against the host before the IngressRuleValue. |
| 550 | // If the host is unspecified, the Ingress routes all traffic based on the |
| 551 | // specified IngressRuleValue. |
| 552 | // +optional |
| 553 | optional string host = 1; |
| 554 | |
| 555 | // IngressRuleValue represents a rule to route requests for this IngressRule. |
| 556 | // If unspecified, the rule defaults to a http catch-all. Whether that sends |
| 557 | // just traffic matching the host to the default backend or all traffic to the |
| 558 | // default backend, is left to the controller fulfilling the Ingress. Http is |
| 559 | // currently the only supported IngressRuleValue. |
| 560 | // +optional |
| 561 | optional IngressRuleValue ingressRuleValue = 2; |
| 562 | } |
| 563 | |
| 564 | // IngressRuleValue represents a rule to apply against incoming requests. If the |
| 565 | // rule is satisfied, the request is routed to the specified backend. Currently |
| 566 | // mixing different types of rules in a single Ingress is disallowed, so exactly |
| 567 | // one of the following must be set. |
| 568 | message IngressRuleValue { |
| 569 | // +optional |
| 570 | optional HTTPIngressRuleValue http = 1; |
| 571 | } |
| 572 | |
| 573 | // IngressSpec describes the Ingress the user wishes to exist. |
| 574 | message IngressSpec { |
| 575 | // A default backend capable of servicing requests that don't match any |
| 576 | // rule. At least one of 'backend' or 'rules' must be specified. This field |
| 577 | // is optional to allow the loadbalancer controller or defaulting logic to |
| 578 | // specify a global default. |
| 579 | // +optional |
| 580 | optional IngressBackend backend = 1; |
| 581 | |
| 582 | // TLS configuration. Currently the Ingress only supports a single TLS |
| 583 | // port, 443. If multiple members of this list specify different hosts, they |
| 584 | // will be multiplexed on the same port according to the hostname specified |
| 585 | // through the SNI TLS extension, if the ingress controller fulfilling the |
| 586 | // ingress supports SNI. |
| 587 | // +optional |
| 588 | repeated IngressTLS tls = 2; |
| 589 | |
| 590 | // A list of host rules used to configure the Ingress. If unspecified, or |
| 591 | // no rule matches, all traffic is sent to the default backend. |
| 592 | // +optional |
| 593 | repeated IngressRule rules = 3; |
| 594 | } |
| 595 | |
| 596 | // IngressStatus describe the current state of the Ingress. |
| 597 | message IngressStatus { |
| 598 | // LoadBalancer contains the current status of the load-balancer. |
| 599 | // +optional |
| 600 | optional k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1; |
| 601 | } |
| 602 | |
| 603 | // IngressTLS describes the transport layer security associated with an Ingress. |
| 604 | message IngressTLS { |
| 605 | // Hosts are a list of hosts included in the TLS certificate. The values in |
| 606 | // this list must match the name/s used in the tlsSecret. Defaults to the |
| 607 | // wildcard host setting for the loadbalancer controller fulfilling this |
| 608 | // Ingress, if left unspecified. |
| 609 | // +optional |
| 610 | repeated string hosts = 1; |
| 611 | |
| 612 | // SecretName is the name of the secret used to terminate SSL traffic on 443. |
| 613 | // Field is left optional to allow SSL routing based on SNI hostname alone. |
| 614 | // If the SNI host in a listener conflicts with the "Host" header field used |
| 615 | // by an IngressRule, the SNI host is used for termination and value of the |
| 616 | // Host header is used for routing. |
| 617 | // +optional |
| 618 | optional string secretName = 2; |
| 619 | } |
| 620 | |
| 621 | // DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy. |
| 622 | // NetworkPolicy describes what network traffic is allowed for a set of Pods |
| 623 | message NetworkPolicy { |
| 624 | // Standard object's metadata. |
| 625 | // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 626 | // +optional |
| 627 | optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 628 | |
| 629 | // Specification of the desired behavior for this NetworkPolicy. |
| 630 | // +optional |
| 631 | optional NetworkPolicySpec spec = 2; |
| 632 | } |
| 633 | |
| 634 | // DEPRECATED 1.9 - This group version of NetworkPolicyEgressRule is deprecated by networking/v1/NetworkPolicyEgressRule. |
| 635 | // NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods |
| 636 | // matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. |
| 637 | // This type is beta-level in 1.8 |
| 638 | message NetworkPolicyEgressRule { |
| 639 | // List of destination ports for outgoing traffic. |
| 640 | // Each item in this list is combined using a logical OR. If this field is |
| 641 | // empty or missing, this rule matches all ports (traffic not restricted by port). |
| 642 | // If this field is present and contains at least one item, then this rule allows |
| 643 | // traffic only if the traffic matches at least one port in the list. |
| 644 | // +optional |
| 645 | repeated NetworkPolicyPort ports = 1; |
| 646 | |
| 647 | // List of destinations for outgoing traffic of pods selected for this rule. |
| 648 | // Items in this list are combined using a logical OR operation. If this field is |
| 649 | // empty or missing, this rule matches all destinations (traffic not restricted by |
| 650 | // destination). If this field is present and contains at least one item, this rule |
| 651 | // allows traffic only if the traffic matches at least one item in the to list. |
| 652 | // +optional |
| 653 | repeated NetworkPolicyPeer to = 2; |
| 654 | } |
| 655 | |
| 656 | // DEPRECATED 1.9 - This group version of NetworkPolicyIngressRule is deprecated by networking/v1/NetworkPolicyIngressRule. |
| 657 | // This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from. |
| 658 | message NetworkPolicyIngressRule { |
| 659 | // List of ports which should be made accessible on the pods selected for this rule. |
| 660 | // Each item in this list is combined using a logical OR. |
| 661 | // If this field is empty or missing, this rule matches all ports (traffic not restricted by port). |
| 662 | // If this field is present and contains at least one item, then this rule allows traffic |
| 663 | // only if the traffic matches at least one port in the list. |
| 664 | // +optional |
| 665 | repeated NetworkPolicyPort ports = 1; |
| 666 | |
| 667 | // List of sources which should be able to access the pods selected for this rule. |
| 668 | // Items in this list are combined using a logical OR operation. |
| 669 | // If this field is empty or missing, this rule matches all sources (traffic not restricted by source). |
| 670 | // If this field is present and contains at least on item, this rule allows traffic only if the |
| 671 | // traffic matches at least one item in the from list. |
| 672 | // +optional |
| 673 | repeated NetworkPolicyPeer from = 2; |
| 674 | } |
| 675 | |
| 676 | // DEPRECATED 1.9 - This group version of NetworkPolicyList is deprecated by networking/v1/NetworkPolicyList. |
| 677 | // Network Policy List is a list of NetworkPolicy objects. |
| 678 | message NetworkPolicyList { |
| 679 | // Standard list metadata. |
| 680 | // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 681 | // +optional |
| 682 | optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; |
| 683 | |
| 684 | // Items is a list of schema objects. |
| 685 | repeated NetworkPolicy items = 2; |
| 686 | } |
| 687 | |
| 688 | // DEPRECATED 1.9 - This group version of NetworkPolicyPeer is deprecated by networking/v1/NetworkPolicyPeer. |
| 689 | message NetworkPolicyPeer { |
| 690 | // This is a label selector which selects Pods. This field follows standard label |
| 691 | // selector semantics; if present but empty, it selects all pods. |
| 692 | // |
| 693 | // If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects |
| 694 | // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. |
| 695 | // Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. |
| 696 | // +optional |
| 697 | optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1; |
| 698 | |
| 699 | // Selects Namespaces using cluster-scoped labels. This field follows standard label |
| 700 | // selector semantics; if present but empty, it selects all namespaces. |
| 701 | // |
| 702 | // If PodSelector is also set, then the NetworkPolicyPeer as a whole selects |
| 703 | // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. |
| 704 | // Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. |
| 705 | // +optional |
| 706 | optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2; |
| 707 | |
| 708 | // IPBlock defines policy on a particular IPBlock. If this field is set then |
| 709 | // neither of the other fields can be. |
| 710 | // +optional |
| 711 | optional IPBlock ipBlock = 3; |
| 712 | } |
| 713 | |
| 714 | // DEPRECATED 1.9 - This group version of NetworkPolicyPort is deprecated by networking/v1/NetworkPolicyPort. |
| 715 | message NetworkPolicyPort { |
| 716 | // Optional. The protocol (TCP or UDP) which traffic must match. |
| 717 | // If not specified, this field defaults to TCP. |
| 718 | // +optional |
| 719 | optional string protocol = 1; |
| 720 | |
| 721 | // If specified, the port on the given protocol. This can |
| 722 | // either be a numerical or named port on a pod. If this field is not provided, |
| 723 | // this matches all port names and numbers. |
| 724 | // If present, only traffic on the specified protocol AND port |
| 725 | // will be matched. |
| 726 | // +optional |
| 727 | optional k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2; |
| 728 | } |
| 729 | |
| 730 | // DEPRECATED 1.9 - This group version of NetworkPolicySpec is deprecated by networking/v1/NetworkPolicySpec. |
| 731 | message NetworkPolicySpec { |
| 732 | // Selects the pods to which this NetworkPolicy object applies. The array of ingress rules |
| 733 | // is applied to any pods selected by this field. Multiple network policies can select the |
| 734 | // same set of pods. In this case, the ingress rules for each are combined additively. |
| 735 | // This field is NOT optional and follows standard label selector semantics. |
| 736 | // An empty podSelector matches all pods in this namespace. |
| 737 | optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1; |
| 738 | |
| 739 | // List of ingress rules to be applied to the selected pods. |
| 740 | // Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod |
| 741 | // OR if the traffic source is the pod's local node, |
| 742 | // OR if the traffic matches at least one ingress rule across all of the NetworkPolicy |
| 743 | // objects whose podSelector matches the pod. |
| 744 | // If this field is empty then this NetworkPolicy does not allow any traffic |
| 745 | // (and serves solely to ensure that the pods it selects are isolated by default). |
| 746 | // +optional |
| 747 | repeated NetworkPolicyIngressRule ingress = 2; |
| 748 | |
| 749 | // List of egress rules to be applied to the selected pods. Outgoing traffic is |
| 750 | // allowed if there are no NetworkPolicies selecting the pod (and cluster policy |
| 751 | // otherwise allows the traffic), OR if the traffic matches at least one egress rule |
| 752 | // across all of the NetworkPolicy objects whose podSelector matches the pod. If |
| 753 | // this field is empty then this NetworkPolicy limits all outgoing traffic (and serves |
| 754 | // solely to ensure that the pods it selects are isolated by default). |
| 755 | // This field is beta-level in 1.8 |
| 756 | // +optional |
| 757 | repeated NetworkPolicyEgressRule egress = 3; |
| 758 | |
| 759 | // List of rule types that the NetworkPolicy relates to. |
| 760 | // Valid options are Ingress, Egress, or Ingress,Egress. |
| 761 | // If this field is not specified, it will default based on the existence of Ingress or Egress rules; |
| 762 | // policies that contain an Egress section are assumed to affect Egress, and all policies |
| 763 | // (whether or not they contain an Ingress section) are assumed to affect Ingress. |
| 764 | // If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. |
| 765 | // Likewise, if you want to write a policy that specifies that no egress is allowed, |
| 766 | // you must specify a policyTypes value that include "Egress" (since such a policy would not include |
| 767 | // an Egress section and would otherwise default to just [ "Ingress" ]). |
| 768 | // This field is beta-level in 1.8 |
| 769 | // +optional |
| 770 | repeated string policyTypes = 4; |
| 771 | } |
| 772 | |
| 773 | // PodSecurityPolicy governs the ability to make requests that affect the Security Context |
| 774 | // that will be applied to a pod and container. |
| 775 | // Deprecated: use PodSecurityPolicy from policy API Group instead. |
| 776 | message PodSecurityPolicy { |
| 777 | // Standard object's metadata. |
| 778 | // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 779 | // +optional |
| 780 | optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 781 | |
| 782 | // spec defines the policy enforced. |
| 783 | // +optional |
| 784 | optional PodSecurityPolicySpec spec = 2; |
| 785 | } |
| 786 | |
| 787 | // PodSecurityPolicyList is a list of PodSecurityPolicy objects. |
| 788 | // Deprecated: use PodSecurityPolicyList from policy API Group instead. |
| 789 | message PodSecurityPolicyList { |
| 790 | // Standard list metadata. |
| 791 | // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 792 | // +optional |
| 793 | optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; |
| 794 | |
| 795 | // items is a list of schema objects. |
| 796 | repeated PodSecurityPolicy items = 2; |
| 797 | } |
| 798 | |
| 799 | // PodSecurityPolicySpec defines the policy enforced. |
| 800 | // Deprecated: use PodSecurityPolicySpec from policy API Group instead. |
| 801 | message PodSecurityPolicySpec { |
| 802 | // privileged determines if a pod can request to be run as privileged. |
| 803 | // +optional |
| 804 | optional bool privileged = 1; |
| 805 | |
| 806 | // defaultAddCapabilities is the default set of capabilities that will be added to the container |
| 807 | // unless the pod spec specifically drops the capability. You may not list a capability in both |
| 808 | // defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly |
| 809 | // allowed, and need not be included in the allowedCapabilities list. |
| 810 | // +optional |
| 811 | repeated string defaultAddCapabilities = 2; |
| 812 | |
| 813 | // requiredDropCapabilities are the capabilities that will be dropped from the container. These |
| 814 | // are required to be dropped and cannot be added. |
| 815 | // +optional |
| 816 | repeated string requiredDropCapabilities = 3; |
| 817 | |
| 818 | // allowedCapabilities is a list of capabilities that can be requested to add to the container. |
| 819 | // Capabilities in this field may be added at the pod author's discretion. |
| 820 | // You must not list a capability in both allowedCapabilities and requiredDropCapabilities. |
| 821 | // +optional |
| 822 | repeated string allowedCapabilities = 4; |
| 823 | |
| 824 | // volumes is a white list of allowed volume plugins. Empty indicates that |
| 825 | // no volumes may be used. To allow all volumes you may use '*'. |
| 826 | // +optional |
| 827 | repeated string volumes = 5; |
| 828 | |
| 829 | // hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. |
| 830 | // +optional |
| 831 | optional bool hostNetwork = 6; |
| 832 | |
| 833 | // hostPorts determines which host port ranges are allowed to be exposed. |
| 834 | // +optional |
| 835 | repeated HostPortRange hostPorts = 7; |
| 836 | |
| 837 | // hostPID determines if the policy allows the use of HostPID in the pod spec. |
| 838 | // +optional |
| 839 | optional bool hostPID = 8; |
| 840 | |
| 841 | // hostIPC determines if the policy allows the use of HostIPC in the pod spec. |
| 842 | // +optional |
| 843 | optional bool hostIPC = 9; |
| 844 | |
| 845 | // seLinux is the strategy that will dictate the allowable labels that may be set. |
| 846 | optional SELinuxStrategyOptions seLinux = 10; |
| 847 | |
| 848 | // runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. |
| 849 | optional RunAsUserStrategyOptions runAsUser = 11; |
| 850 | |
| 851 | // supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. |
| 852 | optional SupplementalGroupsStrategyOptions supplementalGroups = 12; |
| 853 | |
| 854 | // fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. |
| 855 | optional FSGroupStrategyOptions fsGroup = 13; |
| 856 | |
| 857 | // readOnlyRootFilesystem when set to true will force containers to run with a read only root file |
| 858 | // system. If the container specifically requests to run with a non-read only root file system |
| 859 | // the PSP should deny the pod. |
| 860 | // If set to false the container may run with a read only root file system if it wishes but it |
| 861 | // will not be forced to. |
| 862 | // +optional |
| 863 | optional bool readOnlyRootFilesystem = 14; |
| 864 | |
| 865 | // defaultAllowPrivilegeEscalation controls the default setting for whether a |
| 866 | // process can gain more privileges than its parent process. |
| 867 | // +optional |
| 868 | optional bool defaultAllowPrivilegeEscalation = 15; |
| 869 | |
| 870 | // allowPrivilegeEscalation determines if a pod can request to allow |
| 871 | // privilege escalation. If unspecified, defaults to true. |
| 872 | // +optional |
| 873 | optional bool allowPrivilegeEscalation = 16; |
| 874 | |
| 875 | // allowedHostPaths is a white list of allowed host paths. Empty indicates |
| 876 | // that all host paths may be used. |
| 877 | // +optional |
| 878 | repeated AllowedHostPath allowedHostPaths = 17; |
| 879 | |
| 880 | // allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all |
| 881 | // Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes |
| 882 | // is allowed in the "volumes" field. |
| 883 | // +optional |
| 884 | repeated AllowedFlexVolume allowedFlexVolumes = 18; |
| 885 | |
| 886 | // allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. |
| 887 | // Each entry is either a plain sysctl name or ends in "*" in which case it is considered |
| 888 | // as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. |
| 889 | // Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. |
| 890 | // |
| 891 | // Examples: |
| 892 | // e.g. "foo/*" allows "foo/bar", "foo/baz", etc. |
| 893 | // e.g. "foo.*" allows "foo.bar", "foo.baz", etc. |
| 894 | // +optional |
| 895 | repeated string allowedUnsafeSysctls = 19; |
| 896 | |
| 897 | // forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. |
| 898 | // Each entry is either a plain sysctl name or ends in "*" in which case it is considered |
| 899 | // as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. |
| 900 | // |
| 901 | // Examples: |
| 902 | // e.g. "foo/*" forbids "foo/bar", "foo/baz", etc. |
| 903 | // e.g. "foo.*" forbids "foo.bar", "foo.baz", etc. |
| 904 | // +optional |
| 905 | repeated string forbiddenSysctls = 20; |
| 906 | } |
| 907 | |
| 908 | // DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1beta2/ReplicaSet. See the release notes for |
| 909 | // more information. |
| 910 | // ReplicaSet ensures that a specified number of pod replicas are running at any given time. |
| 911 | message ReplicaSet { |
| 912 | // If the Labels of a ReplicaSet are empty, they are defaulted to |
| 913 | // be the same as the Pod(s) that the ReplicaSet manages. |
| 914 | // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata |
| 915 | // +optional |
| 916 | optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 917 | |
| 918 | // Spec defines the specification of the desired behavior of the ReplicaSet. |
| 919 | // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status |
| 920 | // +optional |
| 921 | optional ReplicaSetSpec spec = 2; |
| 922 | |
| 923 | // Status is the most recently observed status of the ReplicaSet. |
| 924 | // This data may be out of date by some window of time. |
| 925 | // Populated by the system. |
| 926 | // Read-only. |
| 927 | // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status |
| 928 | // +optional |
| 929 | optional ReplicaSetStatus status = 3; |
| 930 | } |
| 931 | |
| 932 | // ReplicaSetCondition describes the state of a replica set at a certain point. |
| 933 | message ReplicaSetCondition { |
| 934 | // Type of replica set condition. |
| 935 | optional string type = 1; |
| 936 | |
| 937 | // Status of the condition, one of True, False, Unknown. |
| 938 | optional string status = 2; |
| 939 | |
| 940 | // The last time the condition transitioned from one status to another. |
| 941 | // +optional |
| 942 | optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; |
| 943 | |
| 944 | // The reason for the condition's last transition. |
| 945 | // +optional |
| 946 | optional string reason = 4; |
| 947 | |
| 948 | // A human readable message indicating details about the transition. |
| 949 | // +optional |
| 950 | optional string message = 5; |
| 951 | } |
| 952 | |
| 953 | // ReplicaSetList is a collection of ReplicaSets. |
| 954 | message ReplicaSetList { |
| 955 | // Standard list metadata. |
| 956 | // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds |
| 957 | // +optional |
| 958 | optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; |
| 959 | |
| 960 | // List of ReplicaSets. |
| 961 | // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller |
| 962 | repeated ReplicaSet items = 2; |
| 963 | } |
| 964 | |
| 965 | // ReplicaSetSpec is the specification of a ReplicaSet. |
| 966 | message ReplicaSetSpec { |
| 967 | // Replicas is the number of desired replicas. |
| 968 | // This is a pointer to distinguish between explicit zero and unspecified. |
| 969 | // Defaults to 1. |
| 970 | // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller |
| 971 | // +optional |
| 972 | optional int32 replicas = 1; |
| 973 | |
| 974 | // Minimum number of seconds for which a newly created pod should be ready |
| 975 | // without any of its container crashing, for it to be considered available. |
| 976 | // Defaults to 0 (pod will be considered available as soon as it is ready) |
| 977 | // +optional |
| 978 | optional int32 minReadySeconds = 4; |
| 979 | |
| 980 | // Selector is a label query over pods that should match the replica count. |
| 981 | // If the selector is empty, it is defaulted to the labels present on the pod template. |
| 982 | // Label keys and values that must match in order to be controlled by this replica set. |
| 983 | // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors |
| 984 | // +optional |
| 985 | optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; |
| 986 | |
| 987 | // Template is the object that describes the pod that will be created if |
| 988 | // insufficient replicas are detected. |
| 989 | // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template |
| 990 | // +optional |
| 991 | optional k8s.io.api.core.v1.PodTemplateSpec template = 3; |
| 992 | } |
| 993 | |
| 994 | // ReplicaSetStatus represents the current status of a ReplicaSet. |
| 995 | message ReplicaSetStatus { |
| 996 | // Replicas is the most recently oberved number of replicas. |
| 997 | // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller |
| 998 | optional int32 replicas = 1; |
| 999 | |
| 1000 | // The number of pods that have labels matching the labels of the pod template of the replicaset. |
| 1001 | // +optional |
| 1002 | optional int32 fullyLabeledReplicas = 2; |
| 1003 | |
| 1004 | // The number of ready replicas for this replica set. |
| 1005 | // +optional |
| 1006 | optional int32 readyReplicas = 4; |
| 1007 | |
| 1008 | // The number of available replicas (ready for at least minReadySeconds) for this replica set. |
| 1009 | // +optional |
| 1010 | optional int32 availableReplicas = 5; |
| 1011 | |
| 1012 | // ObservedGeneration reflects the generation of the most recently observed ReplicaSet. |
| 1013 | // +optional |
| 1014 | optional int64 observedGeneration = 3; |
| 1015 | |
| 1016 | // Represents the latest available observations of a replica set's current state. |
| 1017 | // +optional |
| 1018 | // +patchMergeKey=type |
| 1019 | // +patchStrategy=merge |
| 1020 | repeated ReplicaSetCondition conditions = 6; |
| 1021 | } |
| 1022 | |
| 1023 | // Dummy definition |
| 1024 | message ReplicationControllerDummy { |
| 1025 | } |
| 1026 | |
| 1027 | // DEPRECATED. |
| 1028 | message RollbackConfig { |
| 1029 | // The revision to rollback to. If set to 0, rollback to the last revision. |
| 1030 | // +optional |
| 1031 | optional int64 revision = 1; |
| 1032 | } |
| 1033 | |
| 1034 | // Spec to control the desired behavior of daemon set rolling update. |
| 1035 | message RollingUpdateDaemonSet { |
| 1036 | // The maximum number of DaemonSet pods that can be unavailable during the |
| 1037 | // update. Value can be an absolute number (ex: 5) or a percentage of total |
| 1038 | // number of DaemonSet pods at the start of the update (ex: 10%). Absolute |
| 1039 | // number is calculated from percentage by rounding up. |
| 1040 | // This cannot be 0. |
| 1041 | // Default value is 1. |
| 1042 | // Example: when this is set to 30%, at most 30% of the total number of nodes |
| 1043 | // that should be running the daemon pod (i.e. status.desiredNumberScheduled) |
| 1044 | // can have their pods stopped for an update at any given |
| 1045 | // time. The update starts by stopping at most 30% of those DaemonSet pods |
| 1046 | // and then brings up new DaemonSet pods in their place. Once the new pods |
| 1047 | // are available, it then proceeds onto other DaemonSet pods, thus ensuring |
| 1048 | // that at least 70% of original number of DaemonSet pods are available at |
| 1049 | // all times during the update. |
| 1050 | // +optional |
| 1051 | optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1; |
| 1052 | } |
| 1053 | |
| 1054 | // Spec to control the desired behavior of rolling update. |
| 1055 | message RollingUpdateDeployment { |
| 1056 | // The maximum number of pods that can be unavailable during the update. |
| 1057 | // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). |
| 1058 | // Absolute number is calculated from percentage by rounding down. |
| 1059 | // This can not be 0 if MaxSurge is 0. |
| 1060 | // By default, a fixed value of 1 is used. |
| 1061 | // Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods |
| 1062 | // immediately when the rolling update starts. Once new pods are ready, old RC |
| 1063 | // can be scaled down further, followed by scaling up the new RC, ensuring |
| 1064 | // that the total number of pods available at all times during the update is at |
| 1065 | // least 70% of desired pods. |
| 1066 | // +optional |
| 1067 | optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1; |
| 1068 | |
| 1069 | // The maximum number of pods that can be scheduled above the desired number of |
| 1070 | // pods. |
| 1071 | // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). |
| 1072 | // This can not be 0 if MaxUnavailable is 0. |
| 1073 | // Absolute number is calculated from percentage by rounding up. |
| 1074 | // By default, a value of 1 is used. |
| 1075 | // Example: when this is set to 30%, the new RC can be scaled up immediately when |
| 1076 | // the rolling update starts, such that the total number of old and new pods do not exceed |
| 1077 | // 130% of desired pods. Once old pods have been killed, |
| 1078 | // new RC can be scaled up further, ensuring that total number of pods running |
| 1079 | // at any time during the update is atmost 130% of desired pods. |
| 1080 | // +optional |
| 1081 | optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2; |
| 1082 | } |
| 1083 | |
| 1084 | // RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. |
| 1085 | // Deprecated: use RunAsUserStrategyOptions from policy API Group instead. |
| 1086 | message RunAsUserStrategyOptions { |
| 1087 | // rule is the strategy that will dictate the allowable RunAsUser values that may be set. |
| 1088 | optional string rule = 1; |
| 1089 | |
| 1090 | // ranges are the allowed ranges of uids that may be used. If you would like to force a single uid |
| 1091 | // then supply a single range with the same start and end. Required for MustRunAs. |
| 1092 | // +optional |
| 1093 | repeated IDRange ranges = 2; |
| 1094 | } |
| 1095 | |
| 1096 | // SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. |
| 1097 | // Deprecated: use SELinuxStrategyOptions from policy API Group instead. |
| 1098 | message SELinuxStrategyOptions { |
| 1099 | // rule is the strategy that will dictate the allowable labels that may be set. |
| 1100 | optional string rule = 1; |
| 1101 | |
| 1102 | // seLinuxOptions required to run as; required for MustRunAs |
| 1103 | // More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ |
| 1104 | // +optional |
| 1105 | optional k8s.io.api.core.v1.SELinuxOptions seLinuxOptions = 2; |
| 1106 | } |
| 1107 | |
| 1108 | // represents a scaling request for a resource. |
| 1109 | message Scale { |
| 1110 | // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. |
| 1111 | // +optional |
| 1112 | optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 1113 | |
| 1114 | // defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. |
| 1115 | // +optional |
| 1116 | optional ScaleSpec spec = 2; |
| 1117 | |
| 1118 | // current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only. |
| 1119 | // +optional |
| 1120 | optional ScaleStatus status = 3; |
| 1121 | } |
| 1122 | |
| 1123 | // describes the attributes of a scale subresource |
| 1124 | message ScaleSpec { |
| 1125 | // desired number of instances for the scaled object. |
| 1126 | // +optional |
| 1127 | optional int32 replicas = 1; |
| 1128 | } |
| 1129 | |
| 1130 | // represents the current status of a scale subresource. |
| 1131 | message ScaleStatus { |
| 1132 | // actual number of observed instances of the scaled object. |
| 1133 | optional int32 replicas = 1; |
| 1134 | |
| 1135 | // label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors |
| 1136 | // +optional |
| 1137 | map<string, string> selector = 2; |
| 1138 | |
| 1139 | // label selector for pods that should match the replicas count. This is a serializated |
| 1140 | // version of both map-based and more expressive set-based selectors. This is done to |
| 1141 | // avoid introspection in the clients. The string will be in the same format as the |
| 1142 | // query-param syntax. If the target type only supports map-based selectors, both this |
| 1143 | // field and map-based selector field are populated. |
| 1144 | // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors |
| 1145 | // +optional |
| 1146 | optional string targetSelector = 3; |
| 1147 | } |
| 1148 | |
| 1149 | // SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. |
| 1150 | // Deprecated: use SupplementalGroupsStrategyOptions from policy API Group instead. |
| 1151 | message SupplementalGroupsStrategyOptions { |
| 1152 | // rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. |
| 1153 | // +optional |
| 1154 | optional string rule = 1; |
| 1155 | |
| 1156 | // ranges are the allowed ranges of supplemental groups. If you would like to force a single |
| 1157 | // supplemental group then supply a single range with the same start and end. Required for MustRunAs. |
| 1158 | // +optional |
| 1159 | repeated IDRange ranges = 2; |
| 1160 | } |
| 1161 | |