This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
creylopez
/
miproyecto
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Añado template
main
Celestino Rey
1 year ago
parent
60f56337c6
commit
82902894c4
1 changed files
with
58 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+58
-0
openshift/templates/miproyecto.yaml
+ 58
- 0
openshift/templates/miproyecto.yaml
View File
@ -0,0 +1,58 @@
apiVersion
:
v1
kind
:
BuildConfig
metadata:
name
:
miproyecto
spec:
source:
git:
uri
:
"https://gitea.example.com/usuario/miproyecto.git"
ref
:
master
strategy:
dockerStrategy:
dockerfile
:
"Dockerfile"
output:
to:
kind
:
ImageStreamTag
name
:
"miproyecto:latest"
---
apiVersion
:
v1
kind
:
DeploymentConfig
metadata:
name
:
miproyecto
spec:
replicas
:
1
selector:
app
:
miproyecto
template:
metadata:
labels:
app
:
miproyecto
spec:
containers:
-
name
:
miproyecto
image
:
"miproyecto:latest"
ports:
-
containerPort
:
8000
---
apiVersion
:
v1
kind
:
Service
metadata:
name
:
miproyecto
spec:
ports:
-
port
:
8000
targetPort
:
8000
selector:
app
:
miproyecto
---
apiVersion
:
v1
kind
:
Route
metadata:
name
:
miproyecto
spec:
to:
kind
:
Service
name
:
miproyecto
port:
targetPort
:
8000
Write
Preview
Loading…
Cancel
Save