Skip to content

Commit

Permalink
docs: update kustomize k8s manifests (#3148)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeldking committed May 9, 2024
1 parent 221c654 commit ba166af
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 49 deletions.
9 changes: 6 additions & 3 deletions kustomize/README
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ This directory contains a set of manifests and overlays that describe our variou
These deployments can be invoked from the respository root.

Examples:
```

```shell
kubectl apply -k kustomize/base
```

will yield a single node deployment of Phoenix with a local SQLite

```
```shell
kubectl apply -k kustomize/backends/postgres
```
will yield a single node deployment of Phoenix pointed to a remote PostgreSQL

will yield a single node deployment of Phoenix pointed to a remote PostgreSQL
92 changes: 46 additions & 46 deletions kustomize/base/phoenix.yaml
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: phoenix
name: phoenix
spec:
replicas: 1
selector:
matchLabels:
app: phoenix
template:
metadata:
annotations:
prometheus.io/path: /metrics
prometheus.io/port: "9090"
prometheus.io/scrape: "true"
labels:
app: phoenix
spec:
containers:
- args:
- -m
- phoenix.server.main
- serve
command:
- python
env:
- name: PHOENIX_WORKING_DIR
value: /mnt/data
- name: PHOENIX_PORT
value: "6006"
image: arizephoenix/phoenix:sql-13
name: phoenix
ports:
- containerPort: 6006
- containerPort: 9090
- containerPort: 4317
volumeMounts:
- mountPath: /mnt/data
replicas: 1
selector:
matchLabels:
app: phoenix
template:
metadata:
annotations:
prometheus.io/path: /metrics
prometheus.io/port: "9090"
prometheus.io/scrape: "true"
labels:
app: phoenix
spec:
containers:
- args:
- -m
- phoenix.server.main
- serve
command:
- python
env:
- name: PHOENIX_WORKING_DIR
value: /mnt/data
- name: PHOENIX_PORT
value: "6006"
image: arizephoenix/phoenix:version-4.0.0
name: phoenix
ports:
- containerPort: 6006
- containerPort: 9090
- containerPort: 4317
volumeMounts:
- mountPath: /mnt/data
name: phoenix
readinessProbe:
httpGet:
port: 6006 # readiness probe on root of application port to guarantee app is really serving before becoming ready in kubernetes
volumeClaimTemplates:
- metadata:
name: phoenix
readinessProbe:
httpGet:
port: 6006 # readiness probe on root of application port to guarantee app is really serving before becoming ready in kubernetes
volumeClaimTemplates:
- metadata:
name: phoenix
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi

0 comments on commit ba166af

Please sign in to comment.