编辑这个页面

--- apiVersion: v1 kind: ReplicationController metadata: name: backend-rc labels: type: backend-type spec: replicas: 3 template: metadata: labels: type: backend-type spec: containers: - name: backend-container image: gcr.io/google-samples/env-backend:1.1 imagePullPolicy: Always ports: - containerPort: 5000 protocol: TCP env: - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace

Analytics