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

getting everything synced with my fork #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Using official python runtime base image
FROM image-registry.openshift-image-registry.svc:5000/openshift/python:latest
FROM registry.access.redhat.com/ubi9/python-39:latest

# Install our requirements.txt
ADD requirements.txt /opt/app-root/src/requirements.txt
Expand Down
30 changes: 30 additions & 0 deletions kustomize/base/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: pipelines-vote-ui
name: pipelines-vote-ui
spec:
replicas: 1
selector:
matchLabels:
app: pipelines-vote-ui
template:
metadata:
labels:
app: pipelines-vote-ui
spec:
containers:
- image: quay.io/openshift-pipeline/vote-ui:latest
imagePullPolicy: Always
name: pipelines-vote-ui
ports:
- containerPort: 8080
protocol: TCP
- containerPort: 9090
protocol: TCP
env:
- name: VOTING_API_SERVICE_HOST
value: pipelines-vote-api
- name: VOTING_API_SERVICE_PORT
value: "9000"
4 changes: 4 additions & 0 deletions kustomize/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resources:
- deployment.yaml
- route.yaml
- service.yaml
13 changes: 13 additions & 0 deletions kustomize/base/route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: route.openshift.io/v1
kind: Route
metadata:
labels:
app: pipelines-vote-ui
name: pipelines-vote-ui
spec:
port:
targetPort: 8080-tcp
to:
kind: Service
name: pipelines-vote-ui
weight: 100
15 changes: 15 additions & 0 deletions kustomize/base/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: pipelines-vote-ui
name: pipelines-vote-ui
spec:
type: NodePort
ports:
- name: 8080-tcp
port: 8080
targetPort: 8080
protocol: TCP
selector:
app: pipelines-vote-ui
11 changes: 11 additions & 0 deletions kustomize/overlays/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
bases:
- ../base

patches:
- replicas_limit.yaml

namePrefix: dev-

images:
- name: quay.io/openshift-pipeline/vote-ui:latest
newTag: latest
6 changes: 6 additions & 0 deletions kustomize/overlays/replicas_limit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: pipelines-vote-ui
spec:
replicas: 2