mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 05:21:58 +00:00
Merge pull request #9618 from krousey/example_rethinkdb
Changing rethinkdb example to use v1
This commit is contained in:
commit
965711e8d1
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:
|
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.
|
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
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
@ -9,7 +9,7 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- port: 8080
|
- port: 8080
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
createExternalLoadBalancer: true
|
type: LoadBalancer
|
||||||
selector:
|
selector:
|
||||||
db: rethinkdb
|
db: rethinkdb
|
||||||
role: admin
|
role: admin
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -39,7 +39,7 @@ if [[ ! -z "${2-}" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cat << EOF
|
cat << EOF
|
||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
apiVersion: v1beta3
|
apiVersion: v1
|
||||||
kind: ReplicationController
|
kind: ReplicationController
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
Loading…
Reference in New Issue
Block a user