new PHP service
This commit is contained in:
33
K8s/descriptors/ratings-deployment.yaml
Normal file
33
K8s/descriptors/ratings-deployment.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose -f ../docker-compose.yaml convert
|
||||||
|
kompose.version: 1.10.0 (8bb0907)
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
io.kompose.service: ratings
|
||||||
|
name: ratings
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy: {}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
io.kompose.service: ratings
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: robotshop/rs-ratings:latest
|
||||||
|
name: mysql
|
||||||
|
ports:
|
||||||
|
- containerPort: 3306
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 100Mi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 50Mi
|
||||||
|
restartPolicy: Always
|
||||||
|
status: {}
|
19
K8s/descriptors/ratings-service.yaml
Normal file
19
K8s/descriptors/ratings-service.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
kompose.cmd: kompose -f ../docker-compose.yaml convert
|
||||||
|
kompose.version: 1.10.0 (8bb0907)
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
io.kompose.service: ratings
|
||||||
|
name: ratings
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "3306"
|
||||||
|
port: 3306
|
||||||
|
targetPort: 3306
|
||||||
|
selector:
|
||||||
|
io.kompose.service: ratings
|
||||||
|
status:
|
||||||
|
loadBalancer: {}
|
Reference in New Issue
Block a user