apiVersion: v1
kind: ReplicationController
metadata:
  name: nginx
spec:
  replicas: 3
  selector:
    app: nginx
  template:
    metadata:
      name: nginx
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx
        ports:
        - containerPort: 80

#作者：cheergoivan
#链接：https://www.jianshu.com/p/fd8d8d51741e
#來源：简书
#简书著作权归作者所有，任何形式的转载都请联系作者获得授权并注明出处。