Update Kubernetes getting started instructions
parent
35aa5cafde
commit
b9d8da0606
|
@ -220,13 +220,13 @@ You can install InfluxDB in a local kubernetes environment with Minikube.
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: monitoring
|
name: influxdb
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: influxdb
|
name: influxdb
|
||||||
namespace: monitoring
|
namespace: influxdb
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
@ -239,10 +239,6 @@ You can install InfluxDB in a local kubernetes environment with Minikube.
|
||||||
containers:
|
containers:
|
||||||
- name: influxdb
|
- name: influxdb
|
||||||
image: quay.io/influxdb/influxdb:2.0.0-alpha
|
image: quay.io/influxdb/influxdb:2.0.0-alpha
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: "128Mi"
|
|
||||||
cpu: "1000m"
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9999
|
- containerPort: 9999
|
||||||
---
|
---
|
||||||
|
@ -250,9 +246,9 @@ You can install InfluxDB in a local kubernetes environment with Minikube.
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: influxdb
|
name: influxdb
|
||||||
namespace: monitoring
|
namespace: influxdb
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
- port: 9999
|
- port: 9999
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
@ -270,7 +266,7 @@ You can install InfluxDB in a local kubernetes environment with Minikube.
|
||||||
You should see an output like this:
|
You should see an output like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
namespace/monitoring configured
|
namespace/influxdb configured
|
||||||
deployment.apps/influxdb configured
|
deployment.apps/influxdb configured
|
||||||
service/influxdb configured
|
service/influxdb configured
|
||||||
```
|
```
|
||||||
|
@ -278,21 +274,18 @@ You can install InfluxDB in a local kubernetes environment with Minikube.
|
||||||
5. Ensure the service is running:
|
5. Ensure the service is running:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ kubectl get service -n monitoring
|
$ kubectl get service -n influxdb
|
||||||
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
|
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
|
||||||
influxdb NodePort 10.100.164.55 <none> 9999:31111/TCP 26m
|
influxdb NodePort 10.100.164.55 <none> 9999:31111/TCP 26m
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Get the cluster IP address:
|
6. Forward the port:
|
||||||
|
|
||||||
```
|
```
|
||||||
minikube ip
|
kubectl port-forward -n influxdb svc/influxdb 9999:9999 &
|
||||||
```
|
```
|
||||||
|
|
||||||
7. In your browser, visit the minikube IP address and port number listed for the service
|
Vist localhost:9999 in your browser and follow the on-screen instructions to start using InfluxDB!
|
||||||
(something like `192.168.64.6:31111`).
|
|
||||||
|
|
||||||
Follow the on-screen instructions start using InfluxDB!
|
|
||||||
{{% /tab-content %}}
|
{{% /tab-content %}}
|
||||||
<!--------------------------------- END kubernetes ---------------------------->
|
<!--------------------------------- END kubernetes ---------------------------->
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue