Commit e854ac3b authored by Chao Xu's avatar Chao Xu

update examples/hazelcast to v1

parent f62a2a1b
...@@ -30,7 +30,7 @@ In Kubernetes a _[Service](../../docs/services.md)_ describes a set of Pods that ...@@ -30,7 +30,7 @@ In Kubernetes a _[Service](../../docs/services.md)_ describes a set of Pods that
Here is the service description: Here is the service description:
```yaml ```yaml
apiVersion: v1beta3 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
labels: labels:
...@@ -59,7 +59,7 @@ In Kubernetes a _[Replication Controller](../../docs/replication-controller.md)_ ...@@ -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. 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 ```yaml
apiVersion: v1beta3 apiVersion: v1
kind: ReplicationController kind: ReplicationController
metadata: metadata:
labels: labels:
...@@ -105,7 +105,7 @@ $ kubectl create -f hazelcast-controller.yaml ...@@ -105,7 +105,7 @@ $ kubectl create -f hazelcast-controller.yaml
After the controller provisions successfully the pod, you can query the service endpoints: After the controller provisions successfully the pod, you can query the service endpoints:
```sh ```sh
$ kubectl get endpoints hazelcast -o yaml $ kubectl get endpoints hazelcast -o yaml
apiVersion: v1beta3 apiVersion: v1
kind: Endpoints kind: Endpoints
metadata: metadata:
creationTimestamp: 2015-05-04T17:43:40Z creationTimestamp: 2015-05-04T17:43:40Z
...@@ -114,7 +114,7 @@ metadata: ...@@ -114,7 +114,7 @@ metadata:
name: hazelcast name: hazelcast
namespace: default namespace: default
resourceVersion: "120480" resourceVersion: "120480"
selfLink: /api/v1beta3/namespaces/default/endpoints/hazelcast selfLink: /api/v1/namespaces/default/endpoints/hazelcast
uid: 19a22aa9-f285-11e4-b38f-42010af0bbf9 uid: 19a22aa9-f285-11e4-b38f-42010af0bbf9
subsets: subsets:
- addresses: - addresses:
......
apiVersion: v1beta3 apiVersion: v1
kind: ReplicationController kind: ReplicationController
metadata: metadata:
labels: labels:
......
apiVersion: v1beta3 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
labels: labels:
...@@ -7,6 +7,5 @@ metadata: ...@@ -7,6 +7,5 @@ metadata:
spec: spec:
ports: ports:
- port: 5701 - port: 5701
targetPort: 5701
selector: selector:
name: hazelcast name: hazelcast
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment