Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@ FROM node:22-bookworm-slim AS base
WORKDIR /usr/local/app
COPY package.json .

# Installing kubectl and gcloud with gke-gcloud-auth-plugin for accessing GKE
RUN apt-get update && apt-get install -y curl
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl"
RUN chmod +x kubectl
RUN ln -s /usr/local/app/kubectl /usr/local/bin/kubectl
RUN apt-get install -y apt-transport-https ca-certificates gnupg curl
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
RUN apt-get update && apt-get install -y google-cloud-cli
RUN apt-get install -y google-cloud-cli-gke-gcloud-auth-plugin

# Build the typescript code
FROM base AS dependencies
RUN npm install
Expand All @@ -16,4 +27,4 @@ ENV NODE_ENV=production
RUN npm install --only=production
COPY --from=dependencies /usr/local/app/dist ./dist
USER appuser
CMD ["node", "dist/index.js"]
CMD ["node", "dist/index.js"]
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,11 @@ If you have errors, open up a standard terminal and run `kubectl get pods` to se
- [x] Delete a pod
- [x] Describe a pod
- [x] List all namespaces
- [ ] Port forward to a pod
- [x] Get logs from a pod for debugging (supports pods, deployments, jobs, and label selectors)
- [ ] Port forward to a pod
- [ ] Choose namespace for next commands (memory)
- [ ] Support Helm for installing charts

## In Progress

- [ ] [Docker support](https://github.com/Flux159/mcp-server-kubernetes/pull/9)

## Local Development

```bash
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mcp-server-kubernetes",
"version": "0.1.2",
"version": "0.1.4",
"description": "MCP server for interacting with Kubernetes clusters via kubectl",
"license": "MIT",
"type": "module",
Expand Down