Saving services work
parent
20a89d3581
commit
eb3db4da64
@ -0,0 +1,15 @@
|
||||
# Really this pod is for running manual commands. It just sits there in a sleep loop waiting to connect.
|
||||
# I use it will tools like dig or psycopg2 to test out DNS and such within my cluster.
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: cmd-demo
|
||||
labels:
|
||||
purpose: demonstrate-command
|
||||
spec:
|
||||
containers:
|
||||
- name: cmd-demo
|
||||
image: python:3.8.11-buster
|
||||
command: ['sleep']
|
||||
args: ['infinity']
|
||||
restartPolicy: OnFailure
|
@ -0,0 +1,11 @@
|
||||
# Something wrong with the mongo instance. This currently doesn't work
|
||||
apiVersion: v1
|
||||
kind: Endpoints
|
||||
metadata:
|
||||
name: dev-mongo
|
||||
namespace: runcible
|
||||
subsets:
|
||||
- addresses:
|
||||
- ip: 10.0.1.221
|
||||
ports:
|
||||
- port: 27017
|
@ -0,0 +1,14 @@
|
||||
# something is wrong with the mongo instance. This currently doesn't work.
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: dev-mongo
|
||||
namespace: runcible
|
||||
# spec:
|
||||
# type: ExternalName
|
||||
# externalName: docker1.runcible.io
|
||||
spec:
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 27017
|
||||
targetPort: 27017
|
@ -0,0 +1,11 @@
|
||||
# Demonstates using external service name to host a DNS entry pointing to an external resource.
|
||||
# Does not create an endpoint
|
||||
# Example DSN: "host=dev-postgres user=toor password=<YOUR PASSWORD> dbname=testdb"
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: dev-postgres
|
||||
namespace: runcible
|
||||
spec:
|
||||
type: ExternalName
|
||||
externalName: db2.runcible.io
|
@ -0,0 +1,11 @@
|
||||
# Endpoint spec for Service created in external-selectorless-postgres.yaml
|
||||
apiVersion: v1
|
||||
kind: Endpoints
|
||||
metadata:
|
||||
name: selectorless-postgres
|
||||
namespace: runcible
|
||||
subsets:
|
||||
- addresses:
|
||||
- ip: 10.0.1.200
|
||||
ports:
|
||||
- port: 5432
|
@ -0,0 +1,13 @@
|
||||
# Should be compatiable with external-postgres-services.yaml since they will specify different DNS names and endpoints
|
||||
# Requires and Endpoint be created for the Service manually see external-selectorless-postgres-endpoint.yaml
|
||||
# Example DSN "host=selectorless-postgres user=toor password=<YOUR PASSWORD> dbname=testdb"
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: selectorless-postgres
|
||||
namespace: runcible
|
||||
spec:
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 5432
|
||||
targetPort: 5432
|
@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: runcible
|
||||
labels:
|
||||
name: runcible
|
Loading…
Reference in New Issue