Created
February 6, 2017 16:52
-
-
Save shiywang/e5409a69dfe0ad7d73779dbbceaeb026 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./kubectl apply view last-applied -f update_deployment.yaml | |
{"kind":"Deployment","apiVersion":"extensions/v1beta1","metadata":{"name":"nginx-deployment","creationTimestamp":null},"spec":{"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"nginx"}},"spec":{"containers":[{"name":"nginx","image":"nginx:1.12.10","ports":[{"containerPort":80}],"resources":{}}]}},"strategy":{}},"status":{}} | |
Spec: | |
MinReadySeconds: 0 | |
Paused: false | |
ProgressDeadlineSeconds: null | |
Replicas: 1 | |
RevisionHistoryLimit: null | |
RollbackTo: null | |
Selector: | |
matchLabels: | |
app: nginx | |
Strategy: | |
RollingUpdate: | |
MaxSurge: 1 | |
MaxUnavailable: 1 | |
Type: RollingUpdate | |
Template: | |
Spec: | |
ActiveDeadlineSeconds: null | |
Affinity: null | |
Containers: | |
- Args: null | |
Command: null | |
Env: null | |
EnvFrom: null | |
Image: nginx:1.12.10 | |
ImagePullPolicy: IfNotPresent | |
Lifecycle: null | |
LivenessProbe: null | |
Name: nginx | |
Ports: | |
- ContainerPort: 80 | |
HostIP: "" | |
HostPort: 0 | |
Name: "" | |
Protocol: TCP | |
ReadinessProbe: null | |
Resources: | |
Limits: null | |
Requests: null | |
SecurityContext: null | |
Stdin: false | |
StdinOnce: false | |
TTY: false | |
TerminationMessagePath: /dev/termination-log | |
TerminationMessagePolicy: File | |
VolumeMounts: null | |
WorkingDir: "" | |
DNSPolicy: ClusterFirst | |
Hostname: "" | |
ImagePullSecrets: null | |
InitContainers: null | |
NodeName: "" | |
NodeSelector: null | |
RestartPolicy: Always | |
SchedulerName: default-scheduler | |
SecurityContext: | |
FSGroup: null | |
HostIPC: false | |
HostNetwork: false | |
HostPID: false | |
RunAsNonRoot: null | |
RunAsUser: null | |
SELinuxOptions: null | |
SupplementalGroups: null | |
ServiceAccountName: "" | |
Subdomain: "" | |
TerminationGracePeriodSeconds: 30 | |
Volumes: null | |
creationTimestamp: null | |
labels: | |
app: nginx | |
Status: | |
AvailableReplicas: 0 | |
Conditions: null | |
ObservedGeneration: 0 | |
ReadyReplicas: 0 | |
Replicas: 0 | |
UnavailableReplicas: 0 | |
UpdatedReplicas: 0 | |
creationTimestamp: null | |
labels: | |
app: nginx | |
name: nginx-deployment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment