mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	update examples/cassandra to v1
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
apiVersion: v1beta3
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: ReplicationController
 | 
			
		||||
metadata:
 | 
			
		||||
  labels:
 | 
			
		||||
@@ -24,7 +24,7 @@ spec:
 | 
			
		||||
              value: 512M
 | 
			
		||||
            - name: HEAP_NEWSIZE
 | 
			
		||||
              value: 100M
 | 
			
		||||
          image: gcr.io/google_containers/cassandra:v3
 | 
			
		||||
          image: gcr.io/google_containers/cassandra:v4
 | 
			
		||||
          name: cassandra
 | 
			
		||||
          ports:
 | 
			
		||||
            - containerPort: 9042
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
apiVersion: v1beta3
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: Service
 | 
			
		||||
metadata:
 | 
			
		||||
  labels:
 | 
			
		||||
@@ -7,6 +7,5 @@ metadata:
 | 
			
		||||
spec:
 | 
			
		||||
  ports:
 | 
			
		||||
    - port: 9042
 | 
			
		||||
      targetPort: 9042
 | 
			
		||||
  selector:
 | 
			
		||||
    name: cassandra
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
apiVersion: v1beta3
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: Pod
 | 
			
		||||
metadata:
 | 
			
		||||
  labels:
 | 
			
		||||
@@ -11,7 +11,7 @@ spec:
 | 
			
		||||
    resources:
 | 
			
		||||
      limits:
 | 
			
		||||
        cpu: "1"      
 | 
			
		||||
    image: gcr.io/google_containers/cassandra:v3
 | 
			
		||||
    image: gcr.io/google_containers/cassandra:v4
 | 
			
		||||
    name: cassandra
 | 
			
		||||
    ports:
 | 
			
		||||
    - name: cql
 | 
			
		||||
 
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							@@ -102,7 +102,7 @@ public class KubernetesSeedProvider implements SeedProvider {
 | 
			
		||||
        List<InetAddress> list = new ArrayList<InetAddress>();
 | 
			
		||||
        String host = "https://kubernetes.default.cluster.local";
 | 
			
		||||
        String serviceName = getEnvOrDefault("CASSANDRA_SERVICE", "cassandra");
 | 
			
		||||
        String path = "/api/v1beta3/namespaces/default/endpoints/";
 | 
			
		||||
        String path = "/api/v1/namespaces/default/endpoints/";
 | 
			
		||||
        try {
 | 
			
		||||
            String token = getServiceAccountToken();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user