This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # These affect ONLY the runner-manager | |
| envVars: | |
| - name: HTTP_PROXY | |
| value: http://proxy.example.internal:3128 | |
| - name: HTTPS_PROXY | |
| value: http://proxy.example.internal:3128 | |
| # Critically: keep Kubernetes out of the proxy. | |
| - name: NO_PROXY | |
| value: "localhost,127.0.0.1,10.96.0.1,.svc,.cluster.local" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: argoproj.io/v1alpha1 | |
| kind: Application | |
| metadata: | |
| name: gitlab-runner | |
| namespace: argocd | |
| spec: | |
| project: default | |
| destination: | |
| server: https://kubernetes.default.svc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gitlabUrl: https://gitlab.example.com | |
| concurrent: 10 | |
| rbac: | |
| create: true | |
| runners: | |
| secret: gitlab-runner-token |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: StatefulSet | |
| metadata: | |
| name: devcontainer | |
| labels: | |
| app: devcontainer | |
| spec: | |
| serviceName: devcontainer | |
| replicas: 1 | |
| selector: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: StatefulSet | |
| metadata: | |
| name: devcontainer | |
| labels: | |
| app: devcontainer | |
| spec: | |
| serviceName: devcontainer | |
| replicas: 1 | |
| selector: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| config, | |
| pkgs, | |
| lib, | |
| ... | |
| }: | |
| { | |
| imports = [ | |
| ./hardware-configuration.nix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| description = "Minimal NixOS VM install with disko"; | |
| inputs = { | |
| nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; | |
| disko.url = "github:nix-community/disko/latest"; | |
| disko.inputs.nixpkgs.follows = "nixpkgs"; | |
| }; | |
| outputs = { self, nixpkgs, disko, ... }: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { ... }: | |
| { | |
| disko.devices = { | |
| disk.main = { | |
| type = "disk"; | |
| device = "/dev/sda"; # Proxmox: scsi0 = sda | |
| content = { | |
| type = "gpt"; | |
| partitions = { | |
| ESP = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| NS=$1 | |
| # Delete existing pods and services if they exist | |
| kubectl -n $NS delete pod pod1 pod2 --ignore-not-found | |
| kubectl -n $NS delete service pod1-svc pod2-svc --ignore-not-found | |
| # Create services | |
| kubectl -n $NS create service clusterip pod1-svc --tcp=8080:8080 --dry-run=client -o yaml | kubectl set selector --local -f - 'run=pod1' -o yaml | kubectl -n $NS apply -f - | |
| kubectl -n $NS create service clusterip pod2-svc --tcp=8080:8080 --dry-run=client -o yaml | kubectl set selector --local -f - 'run=pod2' -o yaml | kubectl -n $NS apply -f - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| def make_post_request(base_url, action, duration_seconds, web_identity_token, version): | |
| # Define the URL and query parameters | |
| url = base_url | |
| params = { | |
| "Action": action, | |
| "DurationSeconds": duration_seconds, | |
| "WebIdentityToken": web_identity_token, | |
| "Version": version |
NewerOlder