chore: Moved helm Charts and kube Components
This commit is contained in:
29
kube/oc-catalog/oc-catalog-deployment.yml
Normal file
29
kube/oc-catalog/oc-catalog-deployment.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
# oc-catalog-deployment.yml
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: oc-catalog
|
||||
labels:
|
||||
app: oc-catalog
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: oc-catalog
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: oc-catalog
|
||||
spec:
|
||||
containers:
|
||||
- name: oc-catalog
|
||||
image: registry.dev.svc.cluster.local:5000/oc-catalog:latest
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: MONGO_DATABASE
|
||||
value: "DC_myDC"
|
||||
- name: MONGO_URI
|
||||
value: "mongodb://mongo:27017"
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
13
kube/oc-catalog/oc-catalog-service.yml
Normal file
13
kube/oc-catalog/oc-catalog-service.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
# oc-catalog-service.yml
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: oc-catalog
|
||||
spec:
|
||||
selector:
|
||||
app: oc-catalog
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8087
|
||||
targetPort: 8080
|
||||
type: NodePort # Optional, useful for accessing via Minikube IP and NodePort
|
||||
Reference in New Issue
Block a user