Giter Site home page Giter Site logo

trying's Introduction

用于演示如何使用fabric8-maven-plugin

biz-service

create from karaf-bundle-archetype

biz-feature

create from karaf-feature-archetype

biz-assembly

create from karaf-assembly-archetype

install kong

create project

oc new-project api-gateway
oc adm policy add-scc-to-user anyuid -z default

create postgresql

oc new-app sameersbn/postgresql -e 'DB_PASS=kong' -e 'DB_NAME=kong' \
-e 'DB_USER=kong' --name kong-database

create db-migration

apiVersion: batch/v1
kind: Job
metadata:
  name: kong-migration
spec:
  template:
    metadata:
      name: kong-migration
    spec:
      containers:
      - name: kong-migration
        image: kong
        env:
          - name: KONG_NGINX_DAEMON
            value: 'off'
          - name: KONG_PG_USER
            value: kong
          - name: KONG_PG_PASSWORD
            value: "kong"
          - name: KONG_PG_DATABASE
            value: 'kong'
          - name: KONG_PG_HOST
            value: lkong-databases.svc.cluster.local
        command: [ "/bin/sh", "-c", "kong migrations up" ]
      restartPolicy: Never
oc create -f kong_migration_postgres.yaml

create kong

oc new-app kong -e 'KONG_PG_DATABASE=kong' -e 'KONG_PG_USER=kong' -e 'KONG_PG_PASSWORD=kong' \
-e 'KONG_PG_HOST=kong-database' KONG_PROXY_ACCESS_LOG=/dev/stdout KONG_PROXY_ERROR_LOG=/dev/stderr \
-e 'KONG_ADMIN_LISTEN=0.0.0.0:8001'

create kong-dashboard

oc new-app pgbi/kong-dashboard -e "kong-url='http://kong:8001'" 

修改 kong-dashboard参数

       - command:
            - npm
            - start
            - '--'
            - '--kong-url=http://kong:8001'
          image: >-
            pgbi/kong-dashboard@sha256:7c9a4e670718480f9e082b7ace0895deadae29dd831d2a1ce7aecd0f8eb200ed
          imagePullPolicy: Always
          name: kong-dashboard

create konga

 oc new-app pantsel/konga 
 
 Admin
 login: admin | password: adminadminadmin
 
 Demo user
 login: demo | password: demodemodemo

trying's People

Contributors

minikiller avatar

Watchers

 avatar

trying's Issues

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.