Kubernetes CRI CLI: crictl-shaped client, simulator server, proxy
0

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-cri / lib / pod_config.mli
1.6 kB 54 lines
1(** [runtime.v1] pod sandbox configuration (the immutable config for 2 RunPodSandbox). [protocol] is the Protocol enum: 0 TCP, 1 UDP, 2 SCTP. *) 3 4type dns_config = { 5 servers : string list; 6 searches : string list; 7 options : string list; 8} 9 10val dns_config : dns_config Protobuf.t 11(** Codec for {!type-dns_config}. *) 12 13type port_mapping = { 14 protocol : int32; 15 container_port : int32; 16 host_port : int32; 17 host_ip : string; 18} 19 20val port_mapping : port_mapping Protobuf.t 21(** Codec for {!type-port_mapping}. *) 22 23type linux_pod_sandbox_config = { 24 cgroup_parent : string; 25 security_context : Security_context.linux_sandbox_security_context option; 26 sysctls : (string * string) list; 27 overhead : Resources.linux_container_resources option; 28 resources : Resources.linux_container_resources option; 29} 30 31val linux_pod_sandbox_config : linux_pod_sandbox_config Protobuf.t 32(** Codec for {!type-linux_pod_sandbox_config}. *) 33 34type windows_pod_sandbox_config = { 35 security_context : Security_context.windows_sandbox_security_context option; 36} 37 38val windows_pod_sandbox_config : windows_pod_sandbox_config Protobuf.t 39(** Codec for {!type-windows_pod_sandbox_config}. *) 40 41type pod_sandbox_config = { 42 metadata : Metadata.pod_sandbox_metadata option; 43 hostname : string; 44 log_directory : string; 45 dns_config : dns_config option; 46 port_mappings : port_mapping list; 47 labels : (string * string) list; 48 annotations : (string * string) list; 49 linux : linux_pod_sandbox_config option; 50 windows : windows_pod_sandbox_config option; 51} 52 53val pod_sandbox_config : pod_sandbox_config Protobuf.t 54(** Codec for {!type-pod_sandbox_config}. *)