Skip to content

Commit 52d3f9d

Browse files
Rub21batpad
authored andcommitted
Update readme and ingress conf
1 parent cd1b51d commit 52d3f9d

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

osm-seed/README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,32 @@ To handle domain routing and SSL, osm-seed needs the nginx ingress controller se
3535

3636
You can do this with:
3737

38+
```sh
3839
helm upgrade --install ingress-nginx ingress-nginx \
3940
--repo https://kubernetes.github.io/ingress-nginx \
4041
--namespace ingress-nginx --create-namespace
42+
```
43+
44+
or install using `kubectl`
45+
46+
```sh
47+
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.1/deploy/static/provider/cloud/deploy.yaml
48+
```
4149

4250
For more options and cloud-specific instructions, see: https://kubernetes.github.io/ingress-nginx/deploy/
4351

4452
To install the Lets Encrypt `cert-manager` helm chart:
4553

46-
$ helm install \
54+
```sh
55+
helm repo add jetstack https://charts.jetstack.io
56+
helm repo update
57+
helm install \
4758
cert-manager jetstack/cert-manager \
4859
--namespace cert-manager \
4960
--create-namespace \
5061
--version v1.7.1 \
5162
--set installCRDs=true
52-
63+
```
5364
For further information: https://cert-manager.io/docs/installation/helm/
5465

5566
### Install osm-seed onto your cluster

osm-seed/templates/ingress.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- if .Values.ingress.enabled -}}
22
{{- $fullName := include "osm-seed.fullname" . -}}
33
{{- $ingressPath := .Values.ingress.path -}}
4-
apiVersion: networking.k8s.io/v1beta1
4+
apiVersion: networking.k8s.io/v1
55
kind: Ingress
66
metadata:
77
name: {{ $fullName }}
@@ -31,8 +31,11 @@ spec:
3131
http:
3232
paths:
3333
- path: {{ $ingressPath }}
34+
pathType: Prefix
3435
backend:
35-
serviceName: {{ $fullName }}
36-
servicePort: http
36+
service:
37+
name: {{ $fullName }}
38+
port:
39+
number: 80
3740
{{- end }}
3841
{{- end }}

0 commit comments

Comments
 (0)