Skip to content

Instantly share code, notes, and snippets.

@Rajpratik71
Created September 16, 2022 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rajpratik71/632321a6fb8c6acc17593e2c887c45a9 to your computer and use it in GitHub Desktop.
Save Rajpratik71/632321a6fb8c6acc17593e2c887c45a9 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: influxdb
labels:
name: influxdb
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: influxdb
image: influxdb
ports:
- containerPort: 8086
---
kind: Service
apiVersion: v1
metadata:
name: influxdb
spec:
type: ClusterIP
ports:
- port: 8086
selector:
name: influxdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment