Lab 3.3 - Error from server (Conflict)
Hi, think I might have hit a bug
On step 15 in Lab 3.3 after editing "first.yaml" I've added the 3 lines in order to add a port to the container.
- containerPort: 80
After which, you are asked to run
$ kubectl replace -f first.yaml
This is the result:
@lab31-a:~$ kubectl replace -f first.yaml
Error from server (Conflict): error when replacing "first.yaml": Operation cannot be fulfilled on deployments.extensions "nginx": StorageError: invalid object, Code: 4, Key: /registry/deployments/default/nginx, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 0fec00f3-c8ac-11e8-9a8a-42010a9a0003, UID in object meta: e0b9bee1-cae9-11e8-869d-42010a9a0003
I think this might the result of me shutting down the 2 GCE instances when I'm not studying.