Plural
Search…
Proxies
Plural also helps with discovering useful proxy commands for inspecting core resources. This is done via the Proxy crd. A decent example is the proxy to the admin consoles underlying Postgres database:
1
apiVersion: platform.plural.sh/v1alpha1
2
kind: Proxy
3
metadata:
4
name: db
5
labels:
6
spec:
7
type: db
8
target: statefulset/console-postgresql
9
credentials:
10
secret: console-postgresql
11
key: postgresql-password
12
user: console
13
dbConfig:
14
name: console
15
engine: postgres
16
port: 5432
Copied!
The interface is quite powerful, and supports things like fetching db credentials and initiating a sql shell, or spawning a web ui via kubectl port-forward and printing the credentials to stdout to allow a user easily log in.
Copy link
Edit on GitHub