early-match-56268
07/07/2019, 12:57 PMistio-ingressgateway
external IP address. In terraform I would use https://www.terraform.io/docs/providers/kubernetes/d/service.html but can't figure out how to do the same in pulumihigh-translator-22614
07/07/2019, 6:19 PMhigh-translator-22614
07/07/2019, 6:20 PMpulumi preview
when it hasn't been created)high-translator-22614
07/07/2019, 6:20 PMhigh-translator-22614
07/07/2019, 6:21 PMearly-match-56268
07/07/2019, 8:13 PMimport * as k8s from '@kubernetes/client-node'
import { devKubeconfig } from '../cluster'
export const ingressIpAddress = devKubeconfig.apply(config => {
const kc = new k8s.KubeConfig()
kc.loadFromString(config)
const api = kc.makeApiClient(k8s.CoreV1Api)
return api.readNamespacedService('istio-ingressgateway', 'istio-system').then(svc => {
let ipAddress = ''
if (svc.body.status) {
const status = svc.body.status
if (status.loadBalancer) {
const lb = status.loadBalancer
if (lb.ingress) {
const ingress = lb.ingress
if (ingress[0].ip) {
ipAddress = ingress[0].ip
}
}
}
}
return ipAddress
})
})
billions-lock-80282
07/08/2019, 10:33 AMfresh-summer-65887
07/08/2019, 11:22 AM{org-name}/{project-name}/{stack-name}
in the UI and URLs.
On the CLI it's {org-name}/{stack-name}
.
This gets confusing when you have two projects in the same org with the same {stack-name}
.important-leather-28796
07/08/2019, 3:09 PMPOST zones/:identifier/purge_cache
. What am I missing? Any pointers to samples or docs?rich-easter-89163
07/08/2019, 6:28 PMaws.route53.Record
but it creates a sufixed record (e.g my-api-<RANDOM_IDENTIFIER>.mysite.com) which is wrong, I created it according the docs (https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/aws/route53/#alias-record) and I don't see an option to create it without the sufix, my code is almost the same of the docs:
new aws.route53.Record('my-api', {
aliases: [
{
evaluateTargetHealth: false,
name: loadBalancer.dnsName,
zoneId: loadBalancer.zoneId,
},
],
type: aws.route53.RecordTypes.A,
zoneId: zone.zoneId,
});
Any clues on it?important-leather-28796
07/08/2019, 7:59 PMpulumi up
. I was thinking a polling call to pulumi.all
on each resource’s status. Is there already some sample code out there I can look at perhaps? Or any thoughts for/against this approach?swift-painter-31084
07/09/2019, 2:39 AMfew-ability-86674
07/09/2019, 8:06 AMbig-potato-91793
07/09/2019, 1:02 PMbest-salesclerk-82359
07/09/2019, 2:05 PMknative-eventing
. In detail they include a legacy kubernetes deployment with a defined replica of 0
. Unfortunately this fails the stack since pulumi-kubernetes
executes a readiness probe after applying the resource which never fulfills. Is there any solution to this, e.g. to disable the readiness probe for a certain resource?important-leather-28796
07/09/2019, 3:33 PMk8s.apps.v1beta1.Deployment.get('myapp', myWebDeployment.id)
to get latest/fresh values?bitter-island-28909
07/09/2019, 5:52 PMorange-tailor-85423
07/09/2019, 10:51 PMswift-painter-31084
07/09/2019, 11:30 PMpulumi logs -f
on a beefy machine while following logs from 2 lambda functions in one stack.colossal-room-15708
07/10/2019, 2:22 AMparent_id
property, which in a lot of cases is the root of the Organization.
I can't find a way, native to pulumi, to get information about the Organization if the Organization has already been created by someone outside of pulumi.high-translator-22614
07/10/2019, 2:58 AMhigh-translator-22614
07/10/2019, 2:59 AMcool-egg-852
07/10/2019, 3:45 PMmost-judge-33290
07/10/2019, 4:27 PMnew awsx.ecs.FargateService(imageName, {
name: imageName,
cluster,
subnets: ['subnet-1', 'subnet-2, 'subnet-3'],
securityGroups: ['sg-x'],
taskDefinitionArgs: {
container: {
image: `<http://myaccount.dkr.ecr.us-west-2.amazonaws.com/${imageName}|myaccount.dkr.ecr.us-west-2.amazonaws.com/${imageName}>`,
cpu: compute || 512 /*10% of 1024*/,
memory: memory || 512 /*MB*/,
portMappings: [targetGroupListener],
environment: environment || [
{ name: 'NODE_ENV', value: 'production' },
{ name: 'PORT', value: '80' },
],
},
},
desiredCount: desiredCount || 2,
});
swift-painter-31084
07/10/2019, 4:31 PMswift-painter-31084
07/10/2019, 4:31 PMmillions-judge-24978
07/10/2019, 6:05 PMmetrics-server
on kubernetes
, and an alternative to using the helm chart. It is in an early stage, but I believe it can be useful already.
Feedback and PR's welcome!bitter-island-28909
07/10/2019, 6:59 PMpulumi up
this afternoon hang forever in this state:plain-businessperson-30883
07/10/2019, 7:53 PMerror: Running program '/Volumes/Projects/Credijusto/infra/applications/prometheus-operator' failed with an unhandled exception:
TypeError: provider.getPackage is not a function
at convertToProvidersMap (/Volumes/Projects/Credijusto/infra/node_modules/@pulumi/pulumi/resource.js:198:25)
at new Resource (/Volumes/Projects/Credijusto/infra/node_modules/@pulumi/pulumi/resource.js:147:19)
at new ComponentResource (/Volumes/Projects/Credijusto/infra/node_modules/@pulumi/pulumi/resource.js:335:9)
at new CollectionComponentResource (/Volumes/Projects/Credijusto/infra/node_modules/@pulumi/kubernetes/yaml/yaml.js:60:9)
at new Chart (/Volumes/Projects/Credijusto/infra/node_modules/@pulumi/kubernetes/helm/v2/helm.js:62:9)
at Object.<anonymous> (/Volumes/Projects/Credijusto/infra/applications/prometheus-operator/index.ts:8:1)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Module.m._compile (/Volumes/Projects/Credijusto/infra/node_modules/ts-node/src/index.ts:439:23)
at Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Object.require.extensions.<computed> [as .ts] (/Volumes/Projects/Credijusto/infra/node_modules/ts-node/src/index.ts:442:12)
(node:99408) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I can get around this one defining the providers
in the ComponentResourceOptions param (providers: { kubernetes: myProvider }
), but then the following happens:
error: Running program '/Volumes/Projects/Credijusto/infra/applications/prometheus-operator' failed with an unhandled exception:
TypeError: provider.urn.promise is not a function
at /Volumes/Projects/Credijusto/infra/node_modules/@pulumi/pulumi/runtime/resource.js:226:52
at Generator.next (<anonymous>)
at fulfilled (/Volumes/Projects/Credijusto/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:58)
error: Running program '/Volumes/Projects/Credijusto/infra/applications/prometheus-operator' failed with an unhandled exception:
TypeError: provider.urn.promise is not a function
at /Volumes/Projects/Credijusto/infra/node_modules/@pulumi/pulumi/runtime/resource.js:226:52
at Generator.next (<anonymous>)
at fulfilled (/Volumes/Projects/Credijusto/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:58)
error: Running program '/Volumes/Projects/Credijusto/infra/applications/prometheus-operator' failed with an unhandled exception:
TypeError: provider.urn.promise is not a function
at /Volumes/Projects/Credijusto
.
.
.
// It happens recursively.
Any clues on this?important-leather-28796
07/10/2019, 8:53 PMdevelop
branch, we execute pulumi preview
as a sanity check before it is merged to master
. Generally speaking, our gcloud credentials are provided via env GOOGLE_CLOUD_KEYFILE_JSON
. Is there a recent pulumi update that could be causing:
error: Get <https://35.226.191.153/openapi/v2?timeout=32s>: error executing access token command "gcloud config config-helper --format=json": err=exit status 1 output= stderr=ERROR: (gcloud.config.config-helper) You do not currently have an active account selected.
Please run:
$ gcloud auth login
I haven’t any idea why a gcloud config would be called here in our ci.