mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Changing rethinkdb example to use v1
Also deleting a .DS_Store file.
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								examples/rethinkdb/.DS_Store
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								examples/rethinkdb/.DS_Store
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							@@ -100,7 +100,7 @@ rethinkdb-driver   db=influxdb   db=rethinkdb              10.0.27.114      2801
 | 
			
		||||
We request for an external load balancer in the [admin-service.yaml](admin-service.yaml) file:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
createExternalLoadBalancer: true
 | 
			
		||||
type: LoadBalancer
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
The external load balancer allows us to access the service from outside via an external IP, which is 104.197.19.120 in this case. 
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
apiVersion: v1beta3
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: Pod
 | 
			
		||||
metadata:
 | 
			
		||||
  labels:
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
apiVersion: v1beta3
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: Service
 | 
			
		||||
metadata:
 | 
			
		||||
  labels:
 | 
			
		||||
@@ -9,7 +9,7 @@ spec:
 | 
			
		||||
  ports:
 | 
			
		||||
   - port: 8080
 | 
			
		||||
     targetPort: 8080
 | 
			
		||||
  createExternalLoadBalancer: true
 | 
			
		||||
  type: LoadBalancer
 | 
			
		||||
  selector:
 | 
			
		||||
    db: rethinkdb
 | 
			
		||||
    role: admin
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
apiVersion: v1beta3
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: Service
 | 
			
		||||
metadata:
 | 
			
		||||
  labels:
 | 
			
		||||
 
 | 
			
		||||
@@ -39,7 +39,7 @@ if [[ ! -z "${2-}" ]]; then
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
cat << EOF
 | 
			
		||||
apiVersion: v1beta3
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: Pod
 | 
			
		||||
metadata:
 | 
			
		||||
  labels:
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
apiVersion: v1beta3
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: ReplicationController
 | 
			
		||||
metadata:
 | 
			
		||||
  labels:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user