Slide 8
Slide 8 text
export class MyChart extends Chart {
constructor(scope: Construct, name: string) {
super(scope, name);
new Service(this, ‘mysvc’, {
spec: {
selector: { app: ‘myapp’ },
ports: [{
port: 80,
targetPort: 8080
}]
}
});
}
}
#k8sjp
this (= MyChart) を親要素として
参照を貼っている
YAML: MyChart
Service: mysvc
scope