You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 26, 2025. It is now read-only.
All definitions can be found at https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#deployment-v1-apps
5
+
6
+
Field | Description | Example
7
+
----- | ----------- | -------
8
+
metadata.name | Deployment name | cartservice
9
+
spec.replicas | Number of desired pods | 1
10
+
spec.strategy.type | Type of deployment | RollingUpdate
11
+
spec.template.spec.containers{}.image | Docker image name | gcr.io/google-samples/microservices-demo/cartservice:v0.2.2
12
+
spec.template.spec.containers{}.name | Name of the container | server
13
+
spec.template.spec.containers{}.livenessProbe.* | Periodic probe of container liveness
14
+
spec.template.spec.containers{}.ports{}.containerPort | Number of port to expose on the pod's IP address | 7070
15
+
spec.template.spec.containers{}.ports{}.protocol | TCP Protocol for port | TCP
16
+
spec.template.spec.containers{}.readinessProbe.* | Periodic probe of container service readiness
17
+
spec.template.spec.containers{}.resources.limits.cpu | maximum amount of compute resources allowed | 200m
18
+
spec.template.spec.containers{}.resources.limits.memory | maximum amount of compute resources allowed | 300Mi
19
+
spec.template.spec.containers{}.resources.requests.cpu | minimum amount of compute resources required | 200m
20
+
spec.template.spec.containers{}.resources.requests.memory | minimum amount of compute resources required |300Mi
21
+
spec.template.spec.containers{}.volumeMounts{}.mountPath | Path within the container at which the volume should be mounted | /fluentd/etc
22
+
spec.template.spec.containers{}.volumeMounts{}.name | This must match the Name of a Volume | conf-configmap
23
+
spec.template.spec.containers{}.volumeMounts{}.readOnly | Mounted read-only if true, read-write otherwise | TRUE
24
+
spec.template.spec.serviceAccountName | name of the ServiceAccount to use to run this pod | default
25
+
status.availableReplicas | number of available pods | 1
26
+
status.conditions{}.message ReplicaSet | A human readable message indicating details about the transition | "cartservice-67b89ffc69" has successfully progressed
27
+
status.readyReplicas | number of ready pods targeted by this deployment | 1
0 commit comments