Skip to content

feat(k8s): add the danielpetty-com namespace, project and Secret - #6652

Closed
dan-petty wants to merge 5 commits into
mainfrom
feat/6642-danielpetty-com-namespace
Closed

dan-petty wants to merge 5 commits into
mainfrom
feat/6642-danielpetty-com-namespace

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Add the platform side of the site danielpetty.com:

  • Namespace danielpetty-com: Pod Security restricted,
    Prune=false,Delete=false.
  • AppProject danielpetty-com: only the site repository and namespace,
    clusterResourceWhitelist: [], Role and RoleBinding blacklisted,
    orphan warning with Secret event-stream ignored.
  • Project homelab ignores the orphan Secret repo-danielpetty-com.
  • Secret row danielpetty-com/event-stream of the detached stack
    danielpetty-com: NOTE_API_KEY is generated when absent,
    GITHUB_TOKEN is optional. A change restarts
    deployment/event-stream.
  • Monitoring egress to danielpetty-com on TCP 9090.
  • k8s/README.md and the push-secrets --stack help name the stack.

No Argo CD Application yet: #6644 adds it after the Secret push.

Closes #6642

Change: openspec/changes/archive/2026-11-21-6642-danielpetty-com-namespace/

@dan-petty dan-petty added type/feature Type feature: a new function scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 21, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Person steps (from #6642). Do them after the merge and the sync of Application base:

  1. Check the namespace: kubectl get ns danielpetty-com -L pod-security.kubernetes.io/enforce shows restricted.
  2. Optional: put a fine-grained GitHub token with read access to public data only into keyring entry danielpetty_com_github_token (uv run keyring set devops-cli danielpetty_com_github_token). Without it, the harvester has the lower anonymous rate limit of the GitHub API.
  3. Run uv run devops k8s push-secrets --stack danielpetty-com --plan, then uv run devops k8s push-secrets --stack danielpetty-com. Copy the note key from keyring entry danielpetty_com_note_api_key into your note client.
  4. In the installation settings of the GitHub App devops-cli-argocd, add dan-petty/danielpetty.com to the selected repositories (Contents: read, Deployments: write).
  5. Create the repository Secret repo-danielpetty-com in namespace argocd: label argocd.argoproj.io/secret-type: repository, type git, URL https://github.com/dan-petty/danielpetty.com, project: danielpetty-com, and the App ID, installation ID and private key of devops-cli-argocd (the values of repo-homelab). Never put this Secret in git. Check: argocd repo list --core shows the repository as Successful.

The agent ran none of these steps.

@dan-petty

Copy link
Copy Markdown
Owner Author

Closed by direction of the owner, 2026-11-21: devops-cli must not hold functionality for one service repository. The platform gets one generic way to deploy service repositories through Argo CD, and each service repository owns its own manifests. The issue set for the site deployment is redesigned on that basis, and the replacement items will say what replaces this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): add the danielpetty-com namespace, project and Secret row

1 participant