Add deployment of j7s-os images.

This commit is contained in:
James Pace 2023-01-29 21:35:56 -05:00
parent 2f2cb87cf1
commit 9ed09ed2f8
4 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,22 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: j7s-os-app-deployment
labels:
app: j7s-os-app
spec:
replicas: 1
selector:
matchLabels:
app: j7s-os-app
template:
metadata:
labels:
app: j7s-os-app
spec:
containers:
- name: j7s-os-app
image: 192.168.1.128:8443/j7s-os-deploy:202301300131-b56f8fa
ports:
- containerPort: 8080

View File

@ -0,0 +1,17 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: j7s-os-app-ingress
spec:
rules:
- host: j7s-os.internal.jpace121.net
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: j7s-os-app-service
port:
number: 3001

View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- ingress.yaml
- service.yaml

View File

@ -0,0 +1,12 @@
---
apiVersion: v1
kind: Service
metadata:
name: j7s-os-app-service
spec:
selector:
app: j7s-os-app
ports:
- protocol: TCP
targetPort: 8080
port: 3001