SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 361 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. kubectl create -f kubernetes-config.yaml
  2.  
  3. error: error validating "kubernetes-config.yaml": error validating data: ValidationError(Deployment.spec.template.spec.containers): invalid type for xxxxxxxxx.containers: got "map", expected "array"; if you choose to ignore these errors, turn validation off with --validate=false
  4.      
  5. apiVersion: apps/v1
  6. kind: Deployment
  7. metadata:
  8.     name: devops-deployment
  9.     labels:
  10.         app: xxxx
  11.         tier: frontend
  12. spec:
  13.     replicas: 3
  14.     selector:
  15.         matchLabels:
  16.             app: xxxx
  17.             tier: frontend
  18.     template:
  19.         metadata:
  20.             labels:
  21.                 app: xxxxx
  22.                 tier: frontend
  23.         spec:
  24.             containers:
  25.                 name: devops-demo
  26.                 image: gcr.io/xxxxxxx/devops-demo:latest
  27.                 ports:
  28.                     containerPort: 8080
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top