npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@okassov/pulumi-talos-linux

v0.3.1

Published

Talos Linux for Pulumi

Downloads

41

Readme

Talos Linux Module for Pulumi

npm version License: MPL-2.0 Pulumi Registry

This project provides Pulumi components for provisioning Talos Linux using TypeScript. It offers higher-level constructs on top of the Pulumi Talos provider, enabling you to easily create and manage:

A CHANGELOG is maintained for this project.

Installation

Node.js (NPM/Yarn)

Install the package via npm:

$ npm install --save '@okassov/pulumi-talos-linux'

Install the package via yarn:

yarn add @okassov/pulumi-talos-linux

Requirements

  • Node.js >= 14.x
  • Pulumi >= 3.x

Usage

How to use

import * as pulumi from "@pulumi/pulumi";
import * as talos from "@okassov/pulumi-talos-linux";

Example that creates an Talos Linux:

import * as pulumi from "@pulumi/pulumi";
import * as talos from "@okassov/pulumi-talos-linux";

const baseVars        = { env: "test", project: "example", app: "talos" }
const resourceName    = `${baseVars.env}-${baseVars.project}-${baseVars.app}`

const clusterName     = resourceName
const controlPlaneVip = "10.0.0.10"
const clusterEndpoint = `https://${controlPlaneVip}:6443`

const masterNodes = [
    { name: `${resourceName}-master-01`, ip: "10.0.0.11" },
    { name: `${resourceName}-master-02`, ip: "10.0.0.12" },
    { name: `${resourceName}-master-03`, ip: "10.0.0.13" },
];

const workerNodes = [
    { name: `${resourceName}-node-01`, ip: "10.0.0.14" },
    { name: `${resourceName}-node-02`, ip: "10.0.0.15" },
    { name: `${resourceName}-node-03`, ip: "10.0.0.16" },
];

const talosDefaultTemplate = `
machine:
  certSANs: []
  kubelet:
    defaultRuntimeSeccompProfileEnabled: true
    disableManifestsDirectory: true

  network:
    nameservers: ["1.1.1.1", "8.8.8.8"]
    disableSearchDomain: true

  install:
    disk: "/dev/vda"
    image: "ghcr.io/siderolabs/installer:v1.7.4"
    wipe: false

  time:
    disabled: false

  sysctls:
    fs.inotify.max_queued_events: "65536"
    fs.inotify.max_user_watches: "524288"
    net.core.rmem_max: "2500000"
    net.core.wmem_max: "2500000"

  features:
    rbac: true
    stableHostname: true
    apidCheckExtKeyUsage: true
    diskQuotaSupport: true
    kubePrism:
      enabled: true
      port: 7445

cluster:
  controlPlane:
    endpoint: ${clusterEndpoint}
  clusterName: ${clusterName}
  network:
    cni:
      name: none
    dnsDomain: cluster.local
  proxy:
    disabled: true
  discovery:
    enabled: true
    registries:
      kubernetes:
        disabled: false
      service:
        disabled: true
  extraManifests: []
  allowSchedulingOnControlPlanes: true
`

const talosMasterTemplate = `
machine:

  features:
    kubernetesTalosAPIAccess:
      enabled: true
      allowedRoles:
        - os:admin
      allowedKubernetesNamespaces:
        - system-upgrade

  network:
    interfaces:
    - deviceSelector:
        physical: true
      dhcp: true
      vip:
        ip: ${controlPlaneVip}

cluster:

  apiServer:
    certSANs:
      - ${clusterEndpoint}
    disablePodSecurityPolicy: true
    auditPolicy:
      apiVersion: audit.k8s.io/v1
      kind: Policy
      rules:
        - level: Metadata

  controllerManager:
    extraArgs:
      bind-address: 0.0.0.0
      terminated-pod-gc-threshold: 1000

  scheduler:
    extraArgs:
      bind-address: 0.0.0.0

  etcd:
    extraArgs:
      listen-metrics-urls: http://0.0.0.0:2381
`

const containerdPatch = `
machine:
  files:
    - op: create
      path: /etc/cri/conf.d/20-customization.part
      content: |-
        [plugins."io.containerd.grpc.v1.cri"]
          enable_unprivileged_ports = true
          enable_unprivileged_icmp = true
        [plugins."io.containerd.grpc.v1.cri".containerd]
          discard_unpacked_layers = false
        [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
          discard_unpacked_layers = false
`
const disableAdmissionControlPatch = `
- op: remove
  path: /cluster/apiServer/admissionControl
`

const talosCluster = new talos.Talos(`${resourceName}-talosCluster`, {
    sharedConfig: {
        clusterName: clusterName,
        clusterEndpoint: clusterEndpoint,
        boostrapTimeout: "300s"
    },
    master: {
        config: {
            talosVersion: "v1.7.4",
            kubernetesVersion: "1.30.1",
            baseTemplate: [talosDefaultTemplate],
            patches: [talosMasterTemplate, disableAdmissionControlPatch, containerdPatch]
        },
        nodes: masterNodes.map(node => node.ip)
    },
    worker: {
        config: {
            talosVersion: "v1.7.4",
            kubernetesVersion: "1.30.1",
            baseTemplate: [talosDefaultTemplate],
            patches: [containerdPatch]
        },
        nodes: workerNodes.map(node => node.ip)
    }
});

export const talosconfig = talosCluster.talosconfig()
export const kubeconfig = talosCluster.kubeconfig()

License

This package is licensed under the Mozilla Public License, v2.0.

Contributing

Please feel free to open issues or pull requests on GitHub!

Authors

Okassov Marat [email protected]