Files
go/kubernetes/client/v1_affinity.go

24 lines
843 B
Go
Raw Normal View History

/*
* Kubernetes
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: v1.10.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
// Affinity is a group of affinity scheduling rules.
type V1Affinity struct {
// Describes node affinity scheduling rules for the pod.
NodeAffinity *V1NodeAffinity `json:"nodeAffinity,omitempty"`
// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
PodAffinity *V1PodAffinity `json:"podAffinity,omitempty"`
// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
PodAntiAffinity *V1PodAntiAffinity `json:"podAntiAffinity,omitempty"`
}