Skip to content

Commit

Permalink
Merge pull request #93 from CodeForPhilly/releases/k8s-manifests
Browse files Browse the repository at this point in the history
Deploy releases/k8s-manifests 6877424
  • Loading branch information
themightychris committed May 10, 2023
2 parents 7dd08ee + 6877424 commit ad66f1e
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 3 deletions.
43 changes: 43 additions & 0 deletions third-places/Deployment/third-places-frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/component: frontend
app.kubernetes.io/instance: third-places
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: third-places
app.kubernetes.io/version: 0.1.2
helm.sh/chart: third-places-0.1.0
name: third-places-frontend
namespace: third-places
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/component: frontend
app.kubernetes.io/instance: third-places
app.kubernetes.io/name: third-places
template:
metadata:
labels:
app.kubernetes.io/component: frontend
app.kubernetes.io/instance: third-places
app.kubernetes.io/name: third-places
spec:
containers:
- image: 'ghcr.io/codeforphilly/third-places/frontend:0.1.10'
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /
port: http
name: third-places-frontend
ports:
- containerPort: 80
name: http
protocol: TCP
readinessProbe:
httpGet:
path: /
port: http
resources: {}
2 changes: 1 addition & 1 deletion third-places/Deployment/third-places.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ spec:
secretKeyRef:
key: POSTGRES_PASSWORD
name: postgresql
image: 'ghcr.io/codeforphilly/third-places:0.1.9'
image: 'ghcr.io/codeforphilly/third-places:0.1.10'
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
Expand Down
18 changes: 16 additions & 2 deletions third-places/Ingress/third-places.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,25 @@ spec:
paths:
- backend:
service:
name: third-places
name: third-places-frontend
port:
number: 80
name: http
path: /
pathType: Prefix
- backend:
service:
name: third-places
port:
name: http
path: /api/
pathType: Prefix
- backend:
service:
name: third-places
port:
name: http
path: /admin/
pathType: Prefix
tls:
- hosts:
- third-places.live.k8s.phl.io
Expand Down
23 changes: 23 additions & 0 deletions third-places/Service/third-places-frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/component: frontend
app.kubernetes.io/instance: third-places
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: third-places
app.kubernetes.io/version: 0.1.2
helm.sh/chart: third-places-0.1.0
name: third-places-frontend
namespace: third-places
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: http
selector:
app.kubernetes.io/component: frontend
app.kubernetes.io/instance: third-places
app.kubernetes.io/name: third-places
type: ClusterIP

0 comments on commit ad66f1e

Please sign in to comment.