Skip to content

k8sgpt-ai/website

Repository files navigation

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default tseslint.config({
  extends: [
    // Remove ...tseslint.configs.recommended and replace with this
    ...tseslint.configs.recommendedTypeChecked,
    // Alternatively, use this for stricter rules
    ...tseslint.configs.strictTypeChecked,
    // Optionally, add this for stylistic rules
    ...tseslint.configs.stylisticTypeChecked,
  ],
  languageOptions: {
    // other options...
    parserOptions: {
      project: ['./tsconfig.node.json', './tsconfig.app.json'],
      tsconfigRootDir: import.meta.dirname,
    },
  },
})

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default tseslint.config({
  plugins: {
    // Add the react-x and react-dom plugins
    'react-x': reactX,
    'react-dom': reactDom,
  },
  rules: {
    // other rules...
    // Enable its recommended typescript rules
    ...reactX.configs['recommended-typescript'].rules,
    ...reactDom.configs.recommended.rules,
  },
})

K8sGPT Website

This is the official website for K8sGPT, a tool for scanning your Kubernetes clusters, diagnosing, and triaging issues in simple English.

Features

  • Modern, responsive design
  • Comprehensive information about K8sGPT features
  • Community resources and links
  • Mobile-friendly interface

Development

To run the development server:

npm install
npm run dev

Deployment

This site is configured for deployment on Netlify. To deploy:

  1. Push your code to a Git repository (GitHub, GitLab, or Bitbucket)
  2. Log in to your Netlify account
  3. Click "Add new site" > "Import an existing project"
  4. Connect to your Git provider and select the repository
  5. Configure the build settings:
    • Build command: npm run build:netlify
    • Publish directory: dist
    • Node version: 18.18.0 (set in .node-version file)
  6. Click "Deploy site"

Manual Deployment

You can also deploy manually using the Netlify CLI:

# Install Netlify CLI
npm install -g netlify-cli

# Login to Netlify
netlify login

# Initialize and deploy
netlify init
netlify deploy --prod

License

K8sGPT is released under the Apache-2.0 License.

About

Website for K8sGPT

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published