Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create basic Kubernetes pods and services #710

Merged
merged 6 commits into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
167 changes: 167 additions & 0 deletions kubernetes/deployments.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: fhir-converter-app
name: fhir-converter
spec:
replicas: 1
selector:
matchLabels:
app: fhir-converter-app
template:
metadata:
labels:
app: fhir-converter-app
spec:
containers:
- name: fhir-converter
image: ghcr.io/cdcgov/phdi/fhir-converter:v1.0.7
imagePullPolicy: Always
ports:
- containerPort: 8080
name: fhir-converter
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: ingestion-app
name: ingestion
spec:
replicas: 1
selector:
matchLabels:
app: ingestion-app
template:
metadata:
labels:
app: ingestion-app
spec:
containers:
- name: ingestion
image: ghcr.io/cdcgov/phdi/ingestion:v1.0.7
imagePullPolicy: Always
ports:
- containerPort: 8080
name: ingestion
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: tabulation-app
name: tabulation
spec:
replicas: 1
selector:
matchLabels:
app: tabulation-app
template:
metadata:
labels:
app: tabulation-app
spec:
containers:
- name: tabulation
image: ghcr.io/cdcgov/phdi/tabulation:v1.0.7
imagePullPolicy: Always
ports:
- containerPort: 8080
name: tabulation
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: alerts-app
name: alerts
spec:
replicas: 1
selector:
matchLabels:
app: alerts-app
template:
metadata:
labels:
app: alerts-app
spec:
containers:
- name: alerts
image: ghcr.io/cdcgov/phdi/alerts:v1.0.7
imagePullPolicy: Always
ports:
- containerPort: 8080
name: alerts
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: validation-app
name: validation
spec:
replicas: 1
selector:
matchLabels:
app: validation-app
template:
metadata:
labels:
app: validation-app
spec:
containers:
- name: validation
image: ghcr.io/cdcgov/phdi/validation:v1.0.7
imagePullPolicy: Always
ports:
- containerPort: 8080
name: validation
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: message-parser-app
name: message-parser
spec:
replicas: 1
selector:
matchLabels:
app: message-parser-app
template:
metadata:
labels:
app: message-parser-app
spec:
containers:
- name: message-parser
image: ghcr.io/cdcgov/phdi/message-parser:v1.0.7
imagePullPolicy: Always
ports:
- containerPort: 8080
name: message-parser
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: kafka-to-delta-app
name: kafka-to-delta
spec:
replicas: 1
selector:
matchLabels:
app: kafka-to-delta-app
template:
metadata:
labels:
app: kafka-to-delta-app
spec:
containers:
- name: kafka-to-delta
image: ghcr.io/cdcgov/phdi/kafka-to-delta-table:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
name: kafka-to-delta
102 changes: 102 additions & 0 deletions kubernetes/load-balancer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
apiVersion: v1
kind: Service
metadata:
name: fhir-converter-load-balancer
spec:
type: LoadBalancer
ports:
- name: fhir-converter
port: 80
targetPort: 8080
selector:
app: fhir-converter-app

---

apiVersion: v1
kind: Service
metadata:
name: ingestion-load-balancer
spec:
type: LoadBalancer
ports:
- name: ingestion
port: 80
targetPort: 8080
selector:
app: ingestion-app

---

apiVersion: v1
kind: Service
metadata:
name: tabulation-load-balancer
spec:
type: LoadBalancer
ports:
- name: tabulation
port: 80
targetPort: 8080
selector:
app: tabulation-app

---

apiVersion: v1
kind: Service
metadata:
name: alerts-load-balancer
spec:
type: LoadBalancer
ports:
- name: alerts
port: 80
targetPort: 8080
selector:
app: alerts-app

---

apiVersion: v1
kind: Service
metadata:
name: validation-load-balancer
spec:
type: LoadBalancer
ports:
- name: validation
port: 80
targetPort: 8080
selector:
app: validation-app

---

apiVersion: v1
kind: Service
metadata:
name: message-parser-load-balancer
spec:
type: LoadBalancer
ports:
- name: message-parser
port: 80
targetPort: 8080
selector:
app: message-parser-app

---

apiVersion: v1
kind: Service
metadata:
name: kafka-to-delta-load-balancer
spec:
type: LoadBalancer
ports:
- name: kafka-to-delta
port: 80
targetPort: 8080
selector:
app: kafka-to-delta-app