---
apiVersion: "v1"
kind: "Template"
metadata:
annotations:
fabric8.apiman/iconUrl: "https://cdn.rawgit.com/fabric8io/fabric8-ipaas/master/apiman/src/main/fabric8/icon.png"
description: "##Apiman Gateway\n\nApiman is an ApiManager. This application deploy\
\ the Apiman REST API and console. Apiman requires the \nElasticsearch service\
\ to be up and running. You can use this application to manage the apiman gateway.\
\ Note that the gateway runs in a different container. The Fabric8 gateway\
\ uses the Apiman engine to enforce policies and plans that are published to\
\ the gateway using the Apiman console.\n\nFor more details please see the Fabric8 User Guide on\
\ API Management and the Apiman website\
\ itself.\n\nIf you are running from vagrant then once apiman is running you\
\ can hit\n\nhttp://apiman.vagrant.f8/apiman/\n\nto see the apiman status page.\
\ All other endpoints in this service require and authenticated session using\
\ a valid bearer token. For the apiman console navigate to\n\nhttp://apiman-default.vagrant.f8/apiman/apimanui/\n\
\nNote that the host part of the urls may vary when not running on vagrant,\
\ and that \nyou need a Bearer OAuthToken set. Just use the link from the fabric8\
\ console.\n\n\n##Running Apiman on SSL\n\nIf you'd like to run apiman over\
\ SSL then first double check you have the following system parameters set correctly:\n\
\nKUBERNETES_DOMAIN = vagrant.f8\nKUBERNETES_NAMESPACE = default\n\nNow you\
\ can run:\n\n./ssl.sh\n\nto generate a selfsigned certificate for hostname\
\ 'apiman-default.vagrant.f8', in the target/secret directory, and it adds it\
\ as a secret called 'apiman-keystore' in the current 'default' namespace.\n\
\nNow to deploy apiman with SSL support you execute\n\nmvn -Pssl -Pf8-local-deploy\n\
\nwhich mounts the secrets in the /secret directory in the pod and Jetty will\
\ start up\nusing the SslConnectionFactory, based to the system parameter 'APIMAN_SSL'\
\ being set \nto 'true'. See also the properties set in the maven 'ssl' profile\n\
\ntrue\n\nThe fabric8-maven-plugin\
\ aready creates a route but you want a passthrough route so run\n\noc delete\
\ route apiman \noc create route passthrough apiman --service apiman\n\nNow\
\ the apiman should run at\n\nhttps://apiman.vagrant.f8/apiman/apimanui\n\n\n\
\n"
fabric8.apiman/summary: "Apiman deployed on Jetty"
labels: {}
name: "apiman"
objects:
- apiVersion: "v1"
kind: "Service"
metadata:
annotations:
api.service.kubernetes.io/description-language: "SwaggerJSON"
fabric8.io/iconUrl: "https://cdn.rawgit.com/fabric8io/fabric8-ipaas/master/apiman/src/main/fabric8/icon.png"
api.service.kubernetes.io/path: "apiman"
api.service.kubernetes.io/protocol: "REST"
api.service.kubernetes.io/description-path: "apiman/swagger.json"
labels:
project: "apiman"
component: "ApimanManagerAPI"
provider: "fabric8"
version: "2.2.136"
group: "io.fabric8.ipaas.apps"
name: "apiman"
spec:
deprecatedPublicIPs: []
externalIPs: []
ports:
- port: 7070
protocol: "TCP"
targetPort: 7070
selector:
project: "apiman"
component: "ApimanManagerAPI"
provider: "fabric8"
group: "io.fabric8.ipaas.apps"
- apiVersion: "v1"
kind: "ReplicationController"
metadata:
annotations:
fabric8.io/iconUrl: "https://cdn.rawgit.com/fabric8io/fabric8-ipaas/master/apiman/src/main/fabric8/icon.png"
fabric8.io/git-branch: "release-v2.2.136"
fabric8.io/git-commit: "5f6c6d9488b943b216908ded19f59e15f4d4abe3"
fabric8.io/build-url: "http://null:80/job/oss-parent/5"
fabric8.io/build-id: "5"
labels:
project: "apiman"
component: "ApimanManagerAPI"
provider: "fabric8"
version: "2.2.136"
group: "io.fabric8.ipaas.apps"
name: "apiman"
spec:
replicas: 1
selector:
project: "apiman"
component: "ApimanManagerAPI"
provider: "fabric8"
version: "2.2.136"
group: "io.fabric8.ipaas.apps"
template:
metadata:
annotations: {}
labels:
project: "apiman"
component: "ApimanManagerAPI"
provider: "fabric8"
version: "2.2.136"
group: "io.fabric8.ipaas.apps"
spec:
containers:
- args: []
command: []
env:
- name: "AB_JOLOKIA_AUTH_OPENSHIFT"
value: "true"
- name: "KUBERNETES_NAMESPACE"
valueFrom:
fieldRef:
fieldPath: "metadata.namespace"
image: "fabric8/apiman:2.2.136"
name: "apiman"
ports:
- containerPort: 7070
name: "http"
- containerPort: 8778
name: "jolokia"
readinessProbe:
httpGet:
httpHeaders: []
path: "/apiman/"
port: 7070
initialDelaySeconds: 15
timeoutSeconds: 60
resources:
limits:
cpu: "0"
memory: "0"
requests:
cpu: "0"
memory: "0"
securityContext: {}
volumeMounts: []
imagePullSecrets: []
nodeSelector: {}
serviceAccountName: "fabric8"
volumes: []
parameters: []