Skip to content

Commit 283f06e

Browse files
committed
Update k8s configs
We bring our k8s settings and documentation up to date with the current tooling versions we use.
1 parent 2e2924d commit 283f06e

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.k8s/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ docker build -t ocelot-local .
1111
With that out of the way, run the following to kick off a local deployment:
1212

1313
```bash
14-
helm install --name ocelot .k8s/ --set ingress.host=$(hostname),persistence.path=/home/$USER/src/purescript-ocelot
14+
helm upgrade --install ocelot .k8s/ --set ingress.host=$(hostname),persistence.path=/home/$USER/src/purescript-ocelot
1515
```
1616

1717
If you don't have `hostname` configured or your project repo is not set up in `~/src`, then you'll have to manually substitute the value for `ingress.host` with your hostname, and the value for `persistence.path` with your actual project location.

.k8s/templates/deployment.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: apps/v1beta2
1+
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: {{ .Release.Name }}
@@ -16,6 +16,8 @@ spec:
1616
release: {{ .Release.Name }}
1717
template:
1818
metadata:
19+
annotations:
20+
timestamp: "{{ date "20060102150405" now }}"
1921
labels:
2022
app: {{ .Chart.Name }}
2123
release: {{ .Release.Name }}
@@ -66,6 +68,4 @@ spec:
6668
hostPath:
6769
type: Directory
6870
path: {{ .Values.persistence.path }}
69-
nodeSelector: {}
70-
affinity: {}
7171
tolerations: []

.k8s/templates/ingress.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: extensions/v1beta1
1+
apiVersion: networking.k8s.io/v1
22
kind: Ingress
33
metadata:
44
name: {{ .Release.Name }}
@@ -19,6 +19,9 @@ spec:
1919
http:
2020
paths:
2121
- path: /ocelot(/|$)(.*)
22+
pathType: Prefix
2223
backend:
23-
serviceName: {{ .Release.Name }}
24-
servicePort: http
24+
service:
25+
name: {{ .Release.Name }}
26+
port:
27+
number: 80

0 commit comments

Comments
 (0)