Skip to content

Gravitate-Health/swagger-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

Swagger kubernetes deployment

Table of contents

Introduction

Swagger deploymnet for the project API documentation.

Installation

Requirements

kubectl and access to a kubernetes cluster is required.

Kubernetes deployment

For the Kubernetes deployment first of all, the Istio setup must be running

git clone <link-to-repo>
cd swagger-GH

To set up the swagger with the keycloak api we need to apply the configmap

kubectl apply -f YAMLs/001_keycloak-api-configmap.yaml

Then apply the swagger deployment with the number of replicas needed

kubectl apply -f YAMLs/002_swagger-deployment.yaml

To set up the service and the virtual service for Istio run

kubectl apply -f YAMLs/003_swagger-service.yaml
kubectl apply -f YAMLs/004_swagger-vs.yaml

Adding new swagger pages

In order to add or modify new swagger pages the YAMLs/002_swagger-deployment.yaml must be modify in the following section

...

- name: API_URLS
          value: >-
            [
            ... ,
            {url:'<url to the yaml>',name:'Example swagger name'}
            ]
...

Usage

There an endpoint avaible on <base-url>/swagger-fosps where you can access the different swaggers pages avaible.

Known issues and limitations

Nothing noticed yet.

Getting help

In case you find a problem or you need extra help, please use the issues tab to report the issue.

Contributing

To contribute, fork this repository and send a pull request with the changes squashed.

License

This project is distributed under the terms of the Apache License, Version 2.0 (AL2). The license applies to this file and other files in the GitHub repository hosting this file.

Copyright 2022 Universidad Politécnica de Madrid

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Authors and history

About

Swagger deployment for the project API documentation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •