diff --git a/CloudNative/Kubernetes/Base/运行容器通过挂载方式运行程序.md b/CloudNative/Kubernetes/Base/运行容器通过挂载方式运行程序.md index 819bae8..a1d8e43 100644 --- a/CloudNative/Kubernetes/Base/运行容器通过挂载方式运行程序.md +++ b/CloudNative/Kubernetes/Base/运行容器通过挂载方式运行程序.md @@ -9,141 +9,6 @@ metadata: labels: app: echo-server-1 app.kubernetes.io/instance: echo-server-dev - annotations: - deployment.kubernetes.io/revision: '9' - managedFields: - - manager: cfe-apiserver - operation: Update - apiVersion: apps/v1 - time: '2023-09-14T11:26:44Z' - fieldsType: FieldsV1 - fieldsV1: - f:metadata: - f:labels: - .: {} - f:app: {} - f:app.kubernetes.io/instance: {} - f:spec: - f:progressDeadlineSeconds: {} - f:replicas: {} - f:revisionHistoryLimit: {} - f:selector: {} - f:strategy: - f:rollingUpdate: - .: {} - f:maxSurge: {} - f:maxUnavailable: {} - f:type: {} - f:template: - f:metadata: - f:labels: - .: {} - f:app: {} - f:spec: - f:containers: - k:{"name":"runtime"}: - .: {} - f:command: {} - f:env: - .: {} - k:{"name":"ARGS"}: - .: {} - f:name: {} - f:valueFrom: - .: {} - f:configMapKeyRef: {} - k:{"name":"JAVA_OPTS"}: - .: {} - f:name: {} - f:valueFrom: - .: {} - f:configMapKeyRef: {} - f:image: {} - f:imagePullPolicy: {} - f:name: {} - f:ports: - .: {} - k:{"containerPort":48080,"protocol":"TCP"}: - .: {} - f:containerPort: {} - f:name: {} - f:protocol: {} - f:resources: {} - f:terminationMessagePath: {} - f:terminationMessagePolicy: {} - f:volumeMounts: - .: {} - k:{"mountPath":"/opt"}: - .: {} - f:mountPath: {} - f:name: {} - f:readOnly: {} - f:dnsPolicy: {} - f:imagePullSecrets: - .: {} - k:{"name":"swrregistrykey"}: {} - f:initContainers: - .: {} - k:{"name":"busybox"}: - .: {} - f:command: {} - f:image: {} - f:imagePullPolicy: {} - f:name: {} - f:resources: {} - f:terminationMessagePath: {} - f:terminationMessagePolicy: {} - f:volumeMounts: - .: {} - k:{"mountPath":"/tmp"}: - .: {} - f:mountPath: {} - f:name: {} - f:restartPolicy: {} - f:schedulerName: {} - f:securityContext: {} - f:terminationGracePeriodSeconds: {} - f:volumes: - .: {} - k:{"name":"work"}: - .: {} - f:emptyDir: {} - f:name: {} - - manager: kube-controller-manager - operation: Update - apiVersion: apps/v1 - time: '2023-09-14T11:26:47Z' - fieldsType: FieldsV1 - fieldsV1: - f:metadata: - f:annotations: - .: {} - f:deployment.kubernetes.io/revision: {} - f:status: - f:availableReplicas: {} - f:conditions: - .: {} - k:{"type":"Available"}: - .: {} - f:lastTransitionTime: {} - f:lastUpdateTime: {} - f:message: {} - f:reason: {} - f:status: {} - f:type: {} - k:{"type":"Progressing"}: - .: {} - f:lastTransitionTime: {} - f:lastUpdateTime: {} - f:message: {} - f:reason: {} - f:status: {} - f:type: {} - f:observedGeneration: {} - f:readyReplicas: {} - f:replicas: {} - f:updatedReplicas: {} - subresource: status spec: replicas: 1 selector: @@ -169,8 +34,6 @@ spec: volumeMounts: - name: work mountPath: /tmp - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File imagePullPolicy: IfNotPresent containers: - name: runtime @@ -200,8 +63,6 @@ spec: - name: work readOnly: true mountPath: /opt - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File imagePullPolicy: IfNotPresent restartPolicy: Always terminationGracePeriodSeconds: 30