forked from innovacion/Mayacontigo
add app set
This commit is contained in:
41
apps/ocp/.k8s/deployment.yaml
Normal file
41
apps/ocp/.k8s/deployment.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mayacontigo-ocp
|
||||
labels:
|
||||
app: mayacontigo-ocp
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mayacontigo-ocp
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mayacontigo-ocp
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: gitea-registry-cred
|
||||
containers:
|
||||
- name: mayacontigo-ocp
|
||||
image: gitea.ia-innovacion.work/innovacion/mayacontigo-ocp:latest
|
||||
env:
|
||||
- name: VAULT_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mayacontigo-ocp-secret
|
||||
key: VAULT_TOKEN
|
||||
ports:
|
||||
- containerPort: 80
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 20
|
||||
9
apps/ocp/.k8s/secrets.yaml
Normal file
9
apps/ocp/.k8s/secrets.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: mayacontigo-ocp-secret
|
||||
annotations:
|
||||
avp.kubernetes.io/path: "secret/data/mayacontigo-ocp"
|
||||
type: Opaque
|
||||
stringData:
|
||||
VAULT_TOKEN: <VAULT_TOKEN>
|
||||
Reference in New Issue
Block a user