diff --git a/examples/cassandra/README.md b/examples/cassandra/README.md index 605ad9104ae..d4caf63c8db 100644 --- a/examples/cassandra/README.md +++ b/examples/cassandra/README.md @@ -28,7 +28,7 @@ spec: - /run.sh resources: limits: - cpu: "1" + cpu: "0.5" image: gcr.io/google_containers/cassandra:v3 name: cassandra ports: @@ -53,7 +53,7 @@ spec: There are a few things to note in this description. First is that we are running the ```kubernetes/cassandra``` image. This is a standard Cassandra installation on top of Debian. However it also adds a custom [```SeedProvider```](https://svn.apache.org/repos/asf/cassandra/trunk/src/java/org/apache/cassandra/locator/SeedProvider.java) to Cassandra. In Cassandra, a ```SeedProvider``` bootstraps the gossip protocol that Cassandra uses to find other nodes. The ```KubernetesSeedProvider``` discovers the Kubernetes API Server using the built in Kubernetes discovery service, and then uses the Kubernetes API to find new nodes (more on this later) -You may also note that we are setting some Cassandra parameters (```MAX_HEAP_SIZE``` and ```HEAP_NEWSIZE```). We also tell Kubernetes that the container exposes both the ```CQL``` and ```Thrift``` API ports. Finally, we tell the cluster manager that we need 1 cpu (1 core). +You may also note that we are setting some Cassandra parameters (```MAX_HEAP_SIZE``` and ```HEAP_NEWSIZE```). We also tell Kubernetes that the container exposes both the ```CQL``` and ```Thrift``` API ports. Finally, we tell the cluster manager that we need 0.5 cpu (0.5 core). Given this configuration, we can create the pod from a file specification as follows @@ -154,7 +154,7 @@ spec: - /run.sh resources: limits: - cpu: 1 + cpu: 0.5 env: - name: MAX_HEAP_SIZE key: MAX_HEAP_SIZE diff --git a/examples/cassandra/cassandra-controller.yaml b/examples/cassandra/cassandra-controller.yaml index d15ff95a2d9..1fcfa65dbc8 100644 --- a/examples/cassandra/cassandra-controller.yaml +++ b/examples/cassandra/cassandra-controller.yaml @@ -18,7 +18,7 @@ spec: - /run.sh resources: limits: - cpu: 1 + cpu: 0.5 env: - name: MAX_HEAP_SIZE value: 512M diff --git a/examples/cassandra/cassandra.yaml b/examples/cassandra/cassandra.yaml index a41346de31a..6358a19bae1 100644 --- a/examples/cassandra/cassandra.yaml +++ b/examples/cassandra/cassandra.yaml @@ -10,7 +10,7 @@ spec: - /run.sh resources: limits: - cpu: "1" + cpu: "0.5" image: gcr.io/google_containers/cassandra:v4 name: cassandra ports: diff --git a/examples/hazelcast/README.md b/examples/hazelcast/README.md index ae6d17c87a8..720013ec2a7 100644 --- a/examples/hazelcast/README.md +++ b/examples/hazelcast/README.md @@ -77,7 +77,7 @@ spec: containers: - resources: limits: - cpu: 1 + cpu: 0.5 image: quay.io/pires/hazelcast-kubernetes:0.3.1 name: hazelcast env: diff --git a/examples/hazelcast/hazelcast-controller.yaml b/examples/hazelcast/hazelcast-controller.yaml index ce67059aa65..7966fbf6482 100644 --- a/examples/hazelcast/hazelcast-controller.yaml +++ b/examples/hazelcast/hazelcast-controller.yaml @@ -16,7 +16,7 @@ spec: containers: - resources: limits: - cpu: 1 + cpu: 0.5 image: quay.io/pires/hazelcast-kubernetes:0.3.1 name: hazelcast env: diff --git a/examples/mysql-wordpress-pd/README.md b/examples/mysql-wordpress-pd/README.md index c4e701eb73a..bffa61f0e7b 100644 --- a/examples/mysql-wordpress-pd/README.md +++ b/examples/mysql-wordpress-pd/README.md @@ -72,7 +72,7 @@ spec: containers: - resources: limits : - cpu: 1 + cpu: 0.5 image: mysql name: mysql env: diff --git a/examples/redis/redis-controller.yaml b/examples/redis/redis-controller.yaml index 1ab87ce386f..d16a0cccb68 100644 --- a/examples/redis/redis-controller.yaml +++ b/examples/redis/redis-controller.yaml @@ -18,7 +18,7 @@ spec: - containerPort: 6379 resources: limits: - cpu: "1" + cpu: "0.5" volumeMounts: - mountPath: /redis-master-data name: data diff --git a/examples/redis/redis-master.yaml b/examples/redis/redis-master.yaml index c0d84adb7da..c19f9b1724d 100644 --- a/examples/redis/redis-master.yaml +++ b/examples/redis/redis-master.yaml @@ -17,7 +17,7 @@ spec: - containerPort: 6379 resources: limits: - cpu: "1" + cpu: "0.5" volumeMounts: - mountPath: /redis-master-data name: data