Skip to content

Commit

Permalink
add deploy files to use ECR URLs (#5)
Browse files Browse the repository at this point in the history
* uses ECR URLs

updated image pull paths to use ECR paths for marketplace, as per AWS requirement

* Rename ecs-for-aws-marketplace.json to ecs-aws-marketplace.json

* Rename k8s-for-aws-marketplace.yaml to k8s-aws-marketplace.yaml
  • Loading branch information
John Morello authored and Liron Levin committed Nov 12, 2018
1 parent 78c0ec0 commit 067831b
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
18 changes: 18 additions & 0 deletions deploy/ecs-aws-marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"containerDefinitions": [
{
"name": "twistlock-cloud-discovery",
"image": "217273820646.dkr.ecr.us-east-1.amazonaws.com/2fb5feaf-4b5a-4144-b8b5-98e7bf6d587f/cg-1179130891/cloud-discovery:1.0-latest",
"essential": true,
"portMappings": [
{
"containerPort": 9083,
"hostPort": 9083
}
],
"memory": 500,
"cpu": 10
}
],
"family": "twistlock_cloud_discovery"
}
35 changes: 35 additions & 0 deletions deploy/k8s-aws-marketplace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: v1
kind: Service
metadata:
name: cloud-discovery
labels:
run: cloud-discovery
spec:
ports:
- port: 9083
targetPort: 9083
protocol: TCP
selector:
run: cloud-discovery
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cloud-discovery
labels:
app: cloud-discovery
spec:
replicas: 1
selector:
matchLabels:
app: cloud-discovery
template:
metadata:
labels:
app: cloud-discovery
spec:
containers:
- name: cloud-discovery
image: 217273820646.dkr.ecr.us-east-1.amazonaws.com/2fb5feaf-4b5a-4144-b8b5-98e7bf6d587f/cg-1179130891/cloud-discovery:1.0-latest
ports:
- containerPort: 9083

0 comments on commit 067831b

Please sign in to comment.