From e854ac3b1417d1a4dcc89e14002230328e1804d8 Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Tue, 9 Jun 2015 16:49:03 -0700 Subject: [PATCH] update examples/hazelcast to v1 --- examples/hazelcast/README.md | 8 ++++---- examples/hazelcast/hazelcast-controller.yaml | 2 +- examples/hazelcast/hazelcast-service.yaml | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/examples/hazelcast/README.md b/examples/hazelcast/README.md index 075c283f68f..ae6d17c87a8 100644 --- a/examples/hazelcast/README.md +++ b/examples/hazelcast/README.md @@ -30,7 +30,7 @@ In Kubernetes a _[Service](../../docs/services.md)_ describes a set of Pods that Here is the service description: ```yaml -apiVersion: v1beta3 +apiVersion: v1 kind: Service metadata: labels: @@ -59,7 +59,7 @@ In Kubernetes a _[Replication Controller](../../docs/replication-controller.md)_ Replication Controllers will "adopt" existing pods that match their selector query, so let's create a Replication Controller with a single replica to adopt our existing Hazelcast Pod. ```yaml -apiVersion: v1beta3 +apiVersion: v1 kind: ReplicationController metadata: labels: @@ -105,7 +105,7 @@ $ kubectl create -f hazelcast-controller.yaml After the controller provisions successfully the pod, you can query the service endpoints: ```sh $ kubectl get endpoints hazelcast -o yaml -apiVersion: v1beta3 +apiVersion: v1 kind: Endpoints metadata: creationTimestamp: 2015-05-04T17:43:40Z @@ -114,7 +114,7 @@ metadata: name: hazelcast namespace: default resourceVersion: "120480" - selfLink: /api/v1beta3/namespaces/default/endpoints/hazelcast + selfLink: /api/v1/namespaces/default/endpoints/hazelcast uid: 19a22aa9-f285-11e4-b38f-42010af0bbf9 subsets: - addresses: diff --git a/examples/hazelcast/hazelcast-controller.yaml b/examples/hazelcast/hazelcast-controller.yaml index 86496ef665f..ce67059aa65 100644 --- a/examples/hazelcast/hazelcast-controller.yaml +++ b/examples/hazelcast/hazelcast-controller.yaml @@ -1,4 +1,4 @@ -apiVersion: v1beta3 +apiVersion: v1 kind: ReplicationController metadata: labels: diff --git a/examples/hazelcast/hazelcast-service.yaml b/examples/hazelcast/hazelcast-service.yaml index 1ea5a121209..7b43e3c487b 100644 --- a/examples/hazelcast/hazelcast-service.yaml +++ b/examples/hazelcast/hazelcast-service.yaml @@ -1,4 +1,4 @@ -apiVersion: v1beta3 +apiVersion: v1 kind: Service metadata: labels: @@ -7,6 +7,5 @@ metadata: spec: ports: - port: 5701 - targetPort: 5701 selector: name: hazelcast