[Kubernetes] Dry Runs and Diff's

[Kubernetes] Dry Runs and Diff's

  • Dry Runs and Diff's: Testing YAML Before Deployment
    • New stuff, not out of beta yet (1.15)
    • dry-run a create (client side only) 之前只能在client端使用
      • kubectl apply -f app.yml --dry-run
    • dry-run a create/update on server 但是現在想要在server端先行測試
      • kubectl apply -f app.yml --server-dry-run
    • see a diff visually 實際印出有差異的行數
      • kubectl diff -f app.yml
    • END