Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{
image: "nginx",
name: "nginx",
ports: [
{
containerPort: 80
}
]
}
]
}
}
}
});
const service = new Service({
metadata,
spec: {
selector: labels,
type: "ClusterIP",
ports: [
{
port: 80,
targetPort: 80
}
]
}
});
export default [deployment, service];
{
image: `${env.imageRegistry}/nginx:${env.imageTag}`,
name: "nginx",
ports: [
{
containerPort: 80
}
]
}
]
}
}
}
});
const service = new Service({
metadata,
spec: {
selector: labels,
type: "ClusterIP",
ports: [
{
port: 80,
targetPort: 80
}
]
}
});
module.exports = [deployment, service];
labels
},
spec: {
containers: [
{
name: "nginx",
image: `${params.image.registry}/nginx`
}
],
tolerations: params.tolerations
}
}
}
});
const service = new Service({
metadata: {
name: "nginx"
},
spec: {
selector: labels,
ports: [
{
port: 80
}
]
}
});
module.exports = [deployment, service];
labels
},
spec: {
containers: [
{
image: params.imageRegistry + "nginx",
name: "nginx",
ports: [{ containerPort: 80 }]
}
]
}
}
}
});
const service = new Service({
metadata,
spec: {
selector: labels,
type: "ClusterIP",
ports: [
{
port: 80,
targetPort: 80
}
]
}
});
export default [deployment, service];
metadata: {
labels
},
spec: {
containers: [
{
name: "nginx",
image: "nginx"
}
]
}
}
}
});
const service = new Service({
metadata: {
name: "nginx"
},
spec: {
selector: labels,
ports: [
{
port: 80
}
]
}
});
export default [deployment, service];
spec: {
containers: [
{
image: "nginx",
name: "nginx",
ports: [{
containerPort: 80
}]
}
]
}
}
}
});
const service = new Service({
metadata,
spec: {
selector: labels,
type: "ClusterIP",
ports: [
{
port: 80,
targetPort: 80
}
]
}
});
module.exports = [deployment, service];