anchor.diff:  
   Here is the job specification:
   
  -	apiVersion: batch/v1alpha1
  +	apiVersion: batch/v2alpha1
   	kind: CronJob
   	metadata:
   	  name: hello
  
positive.code: 	$ kubectl delete rs/nginx-replicaset
  	replicaset "nginx-replicaset" deleted
  
  == Services
  
  A pod is ephemeral. Each pod is assigned a unique IP address. If a pod that belongs to a replication controller dies, then it is recreated and may be given a different IP address. Further, aAdditional pods may be created using Deployment or Replica Set. This makes it difficult for an application server, such as WildFly, to access a database, such as MySQL, using its IP address.
  
  
negative.code: 
  This job prints the current timestamp and the message "`Hello World`" every minute.
  
  Create the Cron Job as shown in the command:
  
  	$ kubectl create -f template/cronjob.yaml --validate=false
  
  `--validate=false` is required because kubectl CLI version is 1.8. Without this option, you'll get the error:
  
  	error: error validating "templates/cronjob.yaml": error validating data: unknown object type schema.GroupVersionKind{Group:"batch", Version:"v2alpha1", Kind:"CronJob"}; if you choose to ignore these errors, turn validation off with --validate=false
  
  Watch the status of the job as shown:
  
  	$ kubectl get -w cronjobs
  	NAME      SCHEDULE      SUSPEND   ACTIVE    LAST SCHEDULE   AGE
  	hello     */1 * * * *   False     0         <none>
  	hello     */1 * * * *   False     0         <none>
  	hello     */1 * * * *   False     1         Tue, 24 Oct 2017 15:41:00 -0700
  	hello     */1 * * * *   False     0         Tue, 24 Oct 2017 15:41:00 -0700
  	hello     */1 * * * *   False     1         Tue, 24 Oct 2017 15:42:00 -0700
  	hello     */1 * * * *   False     0         Tue, 24 Oct 2017 15:42:00 -0700
  
  In another terminal window, watch the status of pods created:
  
  	$ kubectl get -w pods -l app=hello-cronpod
  	NAME                     READY     STATUS    RESTARTS   AGE
  	hello-1508884860-cq004   0/1       Pending   0          0s
  	hello-1508884860-cq004   0/1       Pending   0         0s
  	hello-1508884860-cq004   0/1       ContainerCreating   0         0s
  	hello-1508884860-cq004   0/1       Completed   0         1s
  	hello-1508884920-wl5bx   0/1       Pending   0         0s
  	hello-1508884920-wl5bx   0/1       Pending   0         0s
  	hello-1508884920-wl5bx   0/1       ContainerCreating   0         0s
  	hello-1508884920-wl5bx   0/1       Completed   0         2s
  	hello-1508884980-45ktd   0/1       Pending   0         0s
  	hello-1508884980-45ktd   0/1       Pending   0         0s
  	hello-1508884980-45ktd   0/1       ContainerCreating   0         0s
  	hello-1508884980-45ktd   0/1       Completed   0         2s
  
  Get logs from one of the pods:
  
      $ kubectl logs hello-1508884860-cq004
  	Tue Oct 24 22:41:02 UTC 2017
  	Hello World!
  
  === Delete Cron Job
  
  Delete the Cron Job as shown in the following command:
  
  	$ kubectl delete -f templates/cronjob.yaml 
  	cronjob "hello" deleted
  
  