github.com/howieyuen/kusion@v0.7.4-rc.2/pkg/projectstack/testdata/appops/nginx-example/README.md (about)

     1  # 前言
     2  
     3  > 本 README.md 包括配置代码仓库目录/文件说明及如何本地使用 Kusion+Minikube 进行测试
     4  
     5  ## 快速开始
     6  
     7  ```bash
     8  $ cd dev
     9  $ kusion apply
    10  SUCCESS  Compiling in stack dev...
    11  
    12  Stack: dev    Provider                Type              Name    Plan
    13        * ├─  kubernetes        v1:Namespace     nginx-example  Create
    14        * ├─  kubernetes          v1:Service     nginx-example  Create
    15        * └─  kubernetes  apps/v1:Deployment  nginx-exampledev  Create
    16  
    17  ✔ yes
    18  Start applying diffs......
    19  SUCCESS  Creating Namespace/nginx-example
    20  SUCCESS  Creating Service/nginx-example
    21  SUCCESS  Creating Deployment/nginx-exampledev
    22  
    23  Creating Deployment/nginx-exampledev [3/3] ████████████████████████████████ 100% | 0s
    24  
    25  $ minikube service nginx-example -n nginx-example --url
    26  http://192.168.99.102:30201
    27  
    28  $ curl -s http://192.168.99.102:30201 | grep '<title>'   # Or visit http://192.168.99.102:30201 in browser
    29  <title>Welcome to nginx!</title>
    30  
    31  $ kusion destroy
    32  ```
    33  
    34  ## 目录和文件说明
    35  
    36  ```bash
    37  .
    38  ├── base                        // 各环境通用配置
    39  │   ├── base.k                  // 应用的环境通用配置
    40  ├── prod                        // 环境目录
    41  │   └── ci-test                 // ci 测试目录,放置测试脚本和数据
    42  │     └── settings.yaml         // 测试数据和编译文件配置
    43  │     └── stdout.golden.yaml    // 期望的 YAML,可通过 make 更新
    44  │   └── kcl.yaml                // 当前 Stack 的多文件编译配置
    45  │   └── main.k                  // 应用在当前环境的配置清单
    46  │   └── stack.yaml              // Stack 元信息
    47  └── project.yaml	            // Project 元信息
    48  └── README.md                   // 说明文档
    49  ```