标签:code bsp service app api selector temp protoc dep
12.3.2 实践Network Policy
当前没有配置任何Network Policy.
apiVersion: apps/v1beta1 kind: Deployment metadata: name: httpd spec: replicas: 3 template: metadata: labels: run: httpd spec: containers: - name: httpd image: httpd:latest imagePullPolicy: IfNotPresent ports: - containerPort: 80 --- apiVersion: v1 kind: Service metadata: name: httpd-svc spec: type: NodePort selector: run: httpd ports: - protocol: TCP nodePort: 30000 port: 8080 targetPort: 80
标签:code bsp service app api selector temp protoc dep
原文地址:https://www.cnblogs.com/liufei1983/p/10224819.html