sparse-intern-71089
10/01/2018, 7:20 PMmicroscopic-florist-22719
creamy-potato-29402
10/01/2018, 7:29 PMbusy-umbrella-36067
10/01/2018, 7:29 PMcreamy-potato-29402
10/01/2018, 7:29 PMbusy-umbrella-36067
10/01/2018, 7:30 PMpod = {
metadata: {
labels: {
app: xyz.name, xyz: "standard"
},
annotations: {
"<http://iam.amazonaws.com/role|iam.amazonaws.com/role>": "arn:aws:iam::"+config.require("aws_account_id")+":role/xyz-"+xyz.name
}
},
spec: {
containers: [{
name: xyz.name,
image: "<http://978526999579.dkr.ecr.eu-west-1.amazonaws.com/|978526999579.dkr.ecr.eu-west-1.amazonaws.com/>"+xyz.name,
resources: {
requests: {
memory: "2Gi",
cpu: "500m"
},
limits: {
memory: "4Gi",
cpu: "1"
}
},
volumeMounts: [{
name: "data",
mountPath: "/data"
}]
}]
}
}
busy-umbrella-36067
10/01/2018, 7:30 PMbusy-umbrella-36067
10/01/2018, 7:31 PM// kubernetes statefulset resource
manifests.push(new k8s.apps.v1.StatefulSet(name, {
metadata: { name: xyz.name },
spec: {
serviceName: xyz.name,
replicas: 2,
updateStrategy: { type: "RollingUpdate" },
selector: { matchLabels: pod.metadata.labels },
template: pod,
volumeClaimTemplates: [{
metadata: { name: "data" },
spec: {
accessModes: [ "ReadWriteOnce" ],
storageClassName: "gp2",
resources: {
requests: { storage: xyz.data_dir_size }
}
}
}]
}
}))
creamy-potato-29402
10/01/2018, 7:34 PMconst ps: types.core.v1.PodSpec = {
containers: [
{
name: appName,
image: "<http://978526999579.dkr.ecr.eu-west-1.amazonaws.com/|978526999579.dkr.ecr.eu-west-1.amazonaws.com/>" + appName
}
],
resources: {
requests: {
memory: "2Gi",
cpu: "500m"
},
limits: {
memory: "4Gi",
cpu: "1"
}
},
volumeMounts: {
name: "data",
mountPath: "/data"
}
}
busy-umbrella-36067
10/01/2018, 7:34 PM~ spec : {
~ containers : [
~ [0]: {
image : "<http://XXXXXXXXXXX.dkr.ecr.eu-west-1.amazonaws.com/xyz|XXXXXXXXXXX.dkr.ecr.eu-west-1.amazonaws.com/xyz>"
name : "xyz"
- resources : {
- limits : {
- cpu : "1"
- memory: "4Gi"
}
- requests: {
- cpu : "500m"
- memory: "2Gi"
}
}
- volumeMounts: [
- [0]: {
- mountPath: "/data"
- name : "data"
}
]
}
]
+ resources : {
+ limits : {
+ cpu : "1"
+ memory: "4Gi"
}
+ requests: {
+ cpu : "500m"
+ memory: "2Gi"
}
}
+ volumeMounts: {
+ mountPath: "/data"
+ name : "data"
}
}
}
updateStrategy : {
type: "RollingUpdate"
}
volumeClaimTemplates: [
[0]: {
metadata: {
name: "data"
}
spec : {
accessModes : [
[0]: "ReadWriteOnce"
]
resources : {
requests: {
storage: "500Gi"
}
}
storageClassName: "gp2"
}
}
]
}
busy-umbrella-36067
10/01/2018, 7:35 PMcreamy-potato-29402
10/01/2018, 7:35 PMcreamy-potato-29402
10/01/2018, 7:36 PMcreamy-potato-29402
10/01/2018, 7:36 PMcreamy-potato-29402
10/01/2018, 7:38 PMDeployment
constructor, and then fails to compile when I try to assign it to a PodSpec
.creamy-potato-29402
10/01/2018, 7:39 PMcreamy-potato-29402
10/01/2018, 7:39 PMbusy-umbrella-36067
10/01/2018, 7:40 PMbusy-umbrella-36067
10/01/2018, 7:40 PMcreamy-potato-29402
10/01/2018, 7:41 PMcreamy-potato-29402
10/01/2018, 7:41 PMcreamy-potato-29402
10/01/2018, 7:41 PMbusy-umbrella-36067
10/01/2018, 7:45 PMcreamy-potato-29402
10/01/2018, 7:45 PMcreamy-potato-29402
10/01/2018, 7:45 PMcreamy-potato-29402
10/01/2018, 7:45 PMbusy-umbrella-36067
10/01/2018, 7:45 PM~ containers : [
~ [0]: {
image : ".<http://dkr.ecr.eu-west-1.amazonaws.com/|dkr.ecr.eu-west-1.amazonaws.com/>"
~ name : "" => "test"
- resources : {
- limits : {
- cpu : "1"
- memory: "4Gi"
}
- requests: {
- cpu : "500m"
- memory: "2Gi"
}
}
- volumeMounts: [
- [0]: {
- mountPath: "/data"
- name : "data"
}
]
}
]
+ resources : {
+ limits : {
+ cpu : "1"
+ memory: "4Gi"
}
+ requests: {
+ cpu : "500m"
+ memory: "2Gi"
}
}
+ volumeMounts: {
+ mountPath: "/data"
+ name : "data"
}
}
}
creamy-potato-29402
10/01/2018, 7:45 PMbusy-umbrella-36067
10/01/2018, 7:46 PMbusy-umbrella-36067
10/01/2018, 7:46 PMinfo: 3 changes performed:
~ 3 resources updated
4 resources unchanged
Update duration: 3.210246876s
Permalink: <https://app.pulumi.com/XXXXX>
creamy-potato-29402
10/01/2018, 7:46 PMbusy-umbrella-36067
10/01/2018, 7:46 PMcreamy-potato-29402
10/01/2018, 7:46 PMcreamy-potato-29402
10/01/2018, 7:46 PMkubectl get -o yaml
creamy-potato-29402
10/01/2018, 7:46 PMcreamy-potato-29402
10/01/2018, 7:47 PMbusy-umbrella-36067
10/01/2018, 7:47 PMbusy-umbrella-36067
10/01/2018, 7:47 PMcreamy-potato-29402
10/01/2018, 7:47 PMbusy-umbrella-36067
10/01/2018, 7:47 PMcreamy-potato-29402
10/01/2018, 7:47 PMkubectl version
busy-umbrella-36067
10/01/2018, 7:47 PMbusy-umbrella-36067
10/01/2018, 7:49 PMexports.getManifest = function(name, items, config) {
manifests = []
item = getItems(name, items)
testSpec = k8s.core.v1.PodSpec = {
...
// kubernetes statefulset resource
manifests.push(new k8s.apps.v1.StatefulSet(name, {
...
return manifests
}
busy-umbrella-36067
10/01/2018, 7:50 PMmanifests
as wellcreamy-potato-29402
10/01/2018, 7:57 PMcreamy-potato-29402
10/01/2018, 7:57 PMcreamy-potato-29402
10/01/2018, 7:57 PMbusy-umbrella-36067
10/01/2018, 7:58 PMcreamy-potato-29402
10/01/2018, 7:59 PMbusy-umbrella-36067
10/01/2018, 8:09 PM