GithubHelp home page GithubHelp logo

kubevela / kubevela.github.io Goto Github PK

View Code? Open in Web Editor NEW
48.0 10.0 207.0 149.82 MB

KubeVela documentations and website (https://kubevela.io).

License: Apache License 2.0

JavaScript 3.07% HTML 64.98% PowerShell 0.35% Shell 1.85% CUE 0.34% Makefile 0.03% Go 1.02% Dockerfile 0.03% SCSS 0.66% MDX 27.67%
documentation

kubevela.github.io's Introduction

KubeVela Docs & Website

This repo contains the source code of Kubevela website and all of the docs for KubeVela. It's built by Docusaurus 2, a modern static website generator.

Welcome to join us and you are more than appreciated to contribute!

Contributing to KubeVela EN Docs

First, we have the source documentation of Kubevela website and it's written in English. Follow Localization README for contributing to other languages. Any files modifid here will trigger the check-docs Github action to run and validate the docs could be build successfully into the website. Any changes on these files(docs/en/*, docs/en/resource/*, sidebars.js) will be submitted to the corresponding locations of the repo kubevela.io. The Github-Action there will parse the document and publish it to the Kubevela Website automatically.

Please follow our guides below to learn how to write the docs in the right way.

Add or Update Docs

When you add or modify the docs, these three files(docs/en/, docs/en/resource/ and sidebars.js) should be taken into consideration.

  1. docs/en/, the main English documentation files are mainly located in this folder. All markdown files need to follow the format, that the title at the beginning should be in the following format:

    ---
    title: Title Name
    ---
    

    When you want to add a link refer to any .md files inside the docs(docs/en), you need to use relative path and remove the .md suffix. For example, the en/helm/component.md has a link refer to en/platform-engineers/definition-and-templates.md. Then the format should like:

    [the definition and template concepts](../platform-engineers/definition-and-templates)
  2. docs/en/resource/, image files are located in this folder. When you want to use link any image in documentation, you should put the image resources here and use a relative path like below:

     ![alt](./resources/concepts.png)
  3. sidebars.js, this file contain the navigation information of the KubeVela website. Please read the official docs of docusaurus to learn how to write sidebar.js.

       {
          type: 'category',
          label: 'Capability References',
          items: [
            // Note!: here must be add the path under "docs/en" 
            'developers/references/README',
            'developers/references/workload-types/webservice',
            'developers/references/workload-types/task',
            ...
          ],
        },

After you finished modify the docs, please try to have a preview of the changes.

Localization README

Language
Chinese

Website Preview

Please make sure you have yarn installed in your OS environment.

Installation

yarn install

Local Development

yarn start

This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.

Build

yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.

Versions for new release

All docs of new features should be updated in the latest docs, we will create a new version of docs along with the code release.

Build New Version

yarn docusaurus docs:version v1.x

Update Docs for version

make update-version version=v1.x

Send your pull request

After all changes checked well, please creating a pull request with DCO.

kubevela.github.io's People

Contributors

arhell avatar averyqi115 avatar barnettzqg avatar binaryhb0916 avatar casper-mars avatar charlie0129 avatar cheimu avatar chenggui-mi avatar chivalryq avatar dependabot[bot] avatar fogdong avatar fourierr avatar ghostbaby avatar hanmengnan avatar hongchaodeng avatar kubevela-bot avatar loheagn avatar lunarwhite avatar qunqiang avatar resouer avatar somefive avatar stevenleizhang avatar sunny0826 avatar wangyikewxgm avatar wonderflow avatar wzjgo avatar yangsoon avatar yangxggo avatar yyong-brs avatar zzxwill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kubevela.github.io's Issues

trait/rollout.md gives wrong command

trait/rollout.md may give wrong command

In rollout.md , expansion part:

$ kubectl get deploy express-server-v1 -l app.oam.dev/component=express-server
NAME READY UP-TO-DATE AVAILABLE AGE
express-server-v1 7/7 7 7 2m

which will give error message:
error: name cannot be provided when a selector is specified

change i18n icon to en/zh

Our i18n icon is en/jp while we don't have jp version of docs, we have zh. I hope we can change the icon.

We should change the icon from:
image

to the expect:

image

Here's a doc site which is also built with Docusaurus, we can refer to their way to change: https://wails.io/ .

ping @Arhell please help.

change the rollout how-to document

After 1.3, the rollout controller moves to Addon, so, we should let users know, they must enable rollout addon before using.

Doc path: docs/end-user/traits/rollout

Make offline installation more easier

Declare EXPOSE in Dockerfile

Give a standard and easy deployment method(including deployment, svc, ingress) in source code

(I build the source for the image, but now i have no idea the container port)

Explain `your ip address` when visiting an appliation by trait

In the doc, users are asked to visit the application by the following command https://kubevela.io/zh/docs/next/quick-start#%E4%B8%80%E4%B8%AA%E6%9C%80%E7%AE%80%E5%8D%95%E7%9A%84%E7%A4%BA%E4%BE%8B, while your ip address is not well documented.
$ curl -H "Host:testsvc.example.com" http://<your ip address>/

You can see the endpoint or address of your ingress. By getting it, you can direct users to visit the console of a cloud provider or by listing the ingress ojbect.

➜  kubevela.io git:(main) kubectl get ingress
NAME             CLASS    HOSTS                 ADDRESS         PORTS   AGE
express-server   <none>   testsvc.example.com   8.210.233.186   80      13m

Documentation plan about version 1.3

Getting Started

OAM Engine(Vela Core)

Tutorials

  • Deploy the across the cloud application.
  • Deploy Kubernetes workloads to multiple clusters.
  • Deploy differentiated applications in multiple clusters.

How-To Guides

  • how to list your application history versions. #603
  • how to roll back your application at any time. #603
  • how to deploy the existed deployment and service to other clusters.

VelaUX

Tutorials

  • SSO with GitHub or LDAP.

How-To Guides

  • how to manage the projects. #597
  • how to manage the users. #597
  • how to manage the roles. #597
  • how to manage the cloud provider.
  • how to manage the helm repository.
  • how to manage the docker registry. #612
  • how to manage the SSO provider.

Extension

  • how to create a private addon registry.

References

[Non code Contribution] Auto-generate cloud resource reference documentation

KubeVela is a powerful CI/CD platform that let you import and manage all kinds of cloud resources from almost every cloud vendor. To all these cloud resources, a clear doc of each that guides us to smoothly use it is necessary and very friendly to the community.

Regarding tons of cloud resources adding into the KubeVela platform, maintain their accordingly docs is a major task. It'll be landed even more faster with the help from you. Thanks for contribution!

Missing cloud resources doc (up to date of 2020/02/25, KEEP UPDATING):

  • Azure MariaDB, example, adding up the missing ones at below
  • Azure/GCP/AWS/TencentCloud/AlibabaCloud XXX
  • ....

How-to in simply using Vela CLI(Make Azure MariaDB as a guide):

  1. run a Vela CLI command vela addon enable terraform-azure that installs Azure Terraform provider for you
  2. using vela def list to check the official name of MariaDB
    image
  3. using vela def doc-gen azure-database-mariadb -n vela-system to generate the doc
  4. you'll find 2 azure-database-mariadb.md files that are in Chinese and English at the current directory
  5. go submitting a PR to Supported Cloud Resource list
  6. comment in this issue to let the community know and Hooray!

add some installation guides for developer Prerequisites

1 Golang version 1.17+
2 Kubernetes version v1.20+ with ~/.kube/config configured.
3 ginkgo 1.14.0+ (just for E2E test)
4 golangci-lint 1.38.0+, it will install automatically if you run make, you can install it manually if the installation is too slow.
5 kubebuilder v3.1.0+ and you need to manually install the dependency tools for unit test.
6 CUE binary v0.3.0+

https://kubevela.io/docs/contributor/code-contribute#prerequisites

Remove prerequisites that can be automatically installed.

enable velaux error

procedure:

  1. follow https://kubevela.net/zh/docs/install to enable velaux

  2. enable velaux

vela addon enable velaux serviceType=NodePort --version 1.3.1
  1. one error is raised
➜  local vela addon enable velaux serviceType=NodePort --version 1.3.1
Error: specified version 1.3.1 not exist
➜  local

expected result:

  1. velaux can be installed without error

investigation:

  1. try to list all addons
➜  local vela addon list | grep vela
velaux                   	KubeVela	KubeVela User Experience (UX). An extensible, application-oriented delivery and management Dashboard.	[v1.3.1, v1.3.0, v1.3.0-beta.2, ...]	disabled
➜  local

you will see the version is not "1.3.1" but "v1.3.1"

  1. so try
➜  local vela addon enable velaux serviceType=NodePort --version v1.3.1
I0416 10:27:22.365686   40354 apply.go:107] "creating object" name="workflowstep-uischema-webhook" resource="/v1, Kind=ConfigMap"
I0416 10:27:22.378243   40354 apply.go:107] "creating object" name="component-uischema-task" resource="/v1, Kind=ConfigMap"
I0416 10:27:22.386727   40354 apply.go:107] "creating object" name="addon-uischema-velaux" resource="/v1, Kind=ConfigMap"
I0416 10:27:22.397918   40354 apply.go:107] "creating object" name="trait-uischema-scaler" resource="/v1, Kind=ConfigMap"
I0416 10:27:22.407483   40354 apply.go:107] "creating object" name="trait-uischema-storage" resource="/v1, Kind=ConfigMap"
I0416 10:27:22.416482   40354 apply.go:107] "creating object" name="component-uischema-k8s-objects" resource="/v1, Kind=ConfigMap"
I0416 10:27:22.426224   40354 apply.go:107] "creating object" name="component-uischema-webservice" resource="/v1, Kind=ConfigMap"
I0416 10:27:22.437073   40354 apply.go:107] "creating object" name="workflowstep-uischema-notification" resource="/v1, Kind=ConfigMap"
I0416 10:27:22.447968   40354 apply.go:107] "creating object" name="workflowstep-uischema-deploy2env" resource="/v1, Kind=ConfigMap"
I0416 10:27:22.460360   40354 apply.go:107] "creating object" name="addon-secret-velaux" resource="/v1, Kind=Secret"
Addon: velaux enabled Successfully.
Please access the velaux from the following endpoints:
+---------+-----------+----------------------------+---------------------------+
| CLUSTER | COMPONENT |  REF(KIND/NAMESPACE/NAME)  |         ENDPOINT          |
+---------+-----------+----------------------------+---------------------------+
|         | velaux    | Service/vela-system/velaux | http://192.168.65.4:30150 |
+---------+-----------+----------------------------+---------------------------+

It works now!

[bug] incorrect output for vela cli installation

install vela cli using https://kubevela.io/script/install.sh, the output like:

Installing v1.2.0-rc.2 Vela CLI...
Downloading https://github.com/oam-dev/kubevela/releases/download/v1.2.0-rc.2/vela-v1.2.0-rc.2-darwin-amd64.tar.gz ...
cp: /usr/local/bin/vela: Permission denied
vela installed into /usr/local/bin successfully.
A Highly Extensible Platform Engine based on Kubernetes and Open Application Model.

i have old version vela-cli at /usr/local/bin/vela, and the cp command was failed by Permission denied, but it still output vela installed into /usr/local/bin successfully.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.