Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 526 Bytes

TWCC-DevOps-notes.md

File metadata and controls

34 lines (31 loc) · 526 Bytes

TWCC DevOps Notes

K8s basic operation

To deploy a service with single or multiple container

  • write yaml
vi nginx-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: nginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        ports:
        - containerPort: 80

... To be continue ...