Skip to content

Commit

Permalink
Add Kubernetes manifests for qpu-proxy deployment and service
Browse files Browse the repository at this point in the history
  • Loading branch information
vstirbu committed Dec 5, 2024
1 parent 50f707d commit 0f3eab9
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
22 changes: 22 additions & 0 deletions manifests/base/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: qpu-proxy
labels:
app: qpu-proxy
spec:
replicas: 2
selector:
matchLabels:
app: q8s-proxy
template:
metadata:
labels:
app: q8s-proxy
spec:
containers:
- name: q8s-proxy
image: ghcr.io/vstirbu/q8s-qpu-proxy:main
ports:
- containerPort: 80
name: qpu-proxy-svc
11 changes: 11 additions & 0 deletions manifests/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: qubernetes
resources:
- deployment.yaml
- service.yaml
commonLabels:
app: qpu-proxy
kustomize.component: qpu-proxy
app.kubernetes.io/name: qpu-proxy
app.kubernetes.io/component: qpu-proxy
12 changes: 12 additions & 0 deletions manifests/base/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: qpu-proxy-service
spec:
selector:
app: qpu-proxy
ports:
- name: name-of-service-port
protocol: TCP
port: 80
targetPort: qpu-proxy-svc
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ development = ["pytest", "black"]

[tool.black]
line-length = 120
# target_version = ['py37']
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
(
Expand Down

0 comments on commit 0f3eab9

Please sign in to comment.