mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-24 14:00:19 +00:00
23 lines
575 B
YAML
23 lines
575 B
YAML
|
apiVersion: v1
|
||
|
kind: ReplicationController
|
||
|
metadata:
|
||
|
labels:
|
||
|
name: web
|
||
|
name: web-controller
|
||
|
spec:
|
||
|
replicas: 2
|
||
|
selector:
|
||
|
name: web
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
name: web
|
||
|
spec:
|
||
|
containers:
|
||
|
- image: node:0.10.40
|
||
|
command: ['/bin/sh', '-c']
|
||
|
args: ['cd /home && git clone https://github.com/ijason/NodeJS-Sample-App.git demo && cd demo/EmployeeDB/ && npm install && sed -i -- ''s/localhost/mongo/g'' app.js && node app.js']
|
||
|
name: web
|
||
|
ports:
|
||
|
- containerPort: 3000
|
||
|
name: http-server
|