committed by
GitHub
2 changed files with 0 additions and 67 deletions
@ -1,59 +0,0 @@ |
|||||
local params = import 'params.libsonnet'; |
|
||||
|
|
||||
[ |
|
||||
{ |
|
||||
"apiVersion": "v1", |
|
||||
"kind": "Service", |
|
||||
"metadata": { |
|
||||
"name": params.name |
|
||||
}, |
|
||||
"spec": { |
|
||||
"ports": [ |
|
||||
{ |
|
||||
"port": params.servicePort, |
|
||||
"targetPort": params.containerPort |
|
||||
} |
|
||||
], |
|
||||
"selector": { |
|
||||
"app": params.name |
|
||||
}, |
|
||||
"type": params.type |
|
||||
} |
|
||||
}, |
|
||||
{ |
|
||||
"apiVersion": "apps/v1", |
|
||||
"kind": "Deployment", |
|
||||
"metadata": { |
|
||||
"name": params.name |
|
||||
}, |
|
||||
"spec": { |
|
||||
"replicas": params.replicas, |
|
||||
"revisionHistoryLimit": 3, |
|
||||
"selector": { |
|
||||
"matchLabels": { |
|
||||
"app": params.name |
|
||||
}, |
|
||||
}, |
|
||||
"template": { |
|
||||
"metadata": { |
|
||||
"labels": { |
|
||||
"app": params.name |
|
||||
} |
|
||||
}, |
|
||||
"spec": { |
|
||||
"containers": [ |
|
||||
{ |
|
||||
"image": params.image, |
|
||||
"name": params.name, |
|
||||
"ports": [ |
|
||||
{ |
|
||||
"containerPort": params.containerPort |
|
||||
} |
|
||||
] |
|
||||
} |
|
||||
] |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
] |
|
@ -1,8 +0,0 @@ |
|||||
{ |
|
||||
containerPort: 80, |
|
||||
image: "gcr.io/heptio-images/ks-guestbook-demo:0.2", |
|
||||
name: "jsonnet-guestbook-ui", |
|
||||
replicas: 1, |
|
||||
servicePort: 80, |
|
||||
type: "LoadBalancer", |
|
||||
} |
|
Loading…
Reference in new issue