Commit 9ba27727 authored by Andrea Cosentino's avatar Andrea Cosentino

Upgrade Hazelcast example with the latest hazelcast-kubernetes-bootstrapper…

Upgrade Hazelcast example with the latest hazelcast-kubernetes-bootstrapper 0.7.0, using Deployments instead of Replication Controller.
parent 9807cd7d
...@@ -241,7 +241,7 @@ func TestExampleObjectSchemas(t *testing.T) { ...@@ -241,7 +241,7 @@ func TestExampleObjectSchemas(t *testing.T) {
"pod": &api.Pod{}, "pod": &api.Pod{},
}, },
"../examples/storage/hazelcast": { "../examples/storage/hazelcast": {
"hazelcast-controller": &api.ReplicationController{}, "hazelcast-deployment": &extensions.Deployment{},
"hazelcast-service": &api.Service{}, "hazelcast-service": &api.Service{},
}, },
"../examples/meteor": { "../examples/meteor": {
......
apiVersion: v1 apiVersion: extensions/v1beta1
kind: ReplicationController kind: Deployment
metadata: metadata:
name: hazelcast
labels: labels:
name: hazelcast name: hazelcast
name: hazelcast
spec: spec:
replicas: 1
selector:
name: hazelcast
template: template:
metadata: metadata:
labels: labels:
name: hazelcast name: hazelcast
spec: spec:
containers: containers:
- resources: - name: hazelcast
limits: image: quay.io/pires/hazelcast-kubernetes:0.8.0
cpu: 0.1 imagePullPolicy: Always
image: quay.io/pires/hazelcast-kubernetes:0.6.1 env:
name: hazelcast - name: "DNS_DOMAIN"
env: value: "cluster.local"
- name: "DNS_DOMAIN" ports:
value: "cluster.local" - name: hazelcast
- name: POD_NAMESPACE containerPort: 5701
valueFrom:
fieldRef:
fieldPath: metadata.namespace
ports:
- containerPort: 5701
name: hazelcast
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM quay.io/pires/docker-jre:8u45-2
EXPOSE 5701
RUN \
curl -Lskj https://github.com/pires/hazelcast-kubernetes-bootstrapper/releases/download/0.5/hazelcast-kubernetes-bootstrapper-0.5.jar \
-o /bootstrapper.jar
CMD java -jar /bootstrapper.jar
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