Skip to content

Commit

Permalink
Merge pull request #78 from Kuadrant/manifest-for-testing
Browse files Browse the repository at this point in the history
install.yaml
  • Loading branch information
jasonmadigan authored Sep 27, 2024
2 parents 838cc58 + e2f7eaa commit 6772d80
Showing 1 changed file with 134 additions and 0 deletions.
134 changes: 134 additions & 0 deletions install.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
apiVersion: v1
kind: Namespace
metadata:
name: kuadrant-console
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kuadrant-console
namespace: kuadrant-console
labels:
app: kuadrant-console
app.kubernetes.io/component: kuadrant-console
app.kubernetes.io/instance: kuadrant-console
app.kubernetes.io/name: kuadrant-console
app.kubernetes.io/part-of: kuadrant-console
app.openshift.io/runtime-namespace: kuadrant-console
spec:
replicas: 1
selector:
matchLabels:
app: kuadrant-console
template:
metadata:
labels:
app: kuadrant-console
app.kubernetes.io/component: kuadrant-console
app.kubernetes.io/instance: kuadrant-console
app.kubernetes.io/name: kuadrant-console
app.kubernetes.io/part-of: kuadrant-console
spec:
containers:
- name: kuadrant-console
image: quay.io/kuadrant/console-plugin:latest
ports:
- containerPort: 9443
protocol: TCP
imagePullPolicy: Always
volumeMounts:
- name: plugin-serving-cert
readOnly: true
mountPath: /var/serving-cert
- name: nginx-conf
readOnly: true
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
volumes:
- name: plugin-serving-cert
secret:
secretName: plugin-serving-cert
defaultMode: 420
- name: nginx-conf
configMap:
name: nginx-conf
defaultMode: 420
restartPolicy: Always
dnsPolicy: ClusterFirst
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
---
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
namespace: kuadrant-console
labels:
app: kuadrant-console
app.kubernetes.io/component: kuadrant-console
app.kubernetes.io/instance: kuadrant-console
app.kubernetes.io/name: kuadrant-console
app.kubernetes.io/part-of: kuadrant-console
data:
nginx.conf: |
error_log /dev/stdout;
events {}
http {
access_log /dev/stdout;
include /etc/nginx/mime.types;
default_type application/octet-stream;
keepalive_timeout 65;
server {
listen 9443 ssl;
listen [::]:9443 ssl;
ssl_certificate /var/serving-cert/tls.crt;
ssl_certificate_key /var/serving-cert/tls.key;
add_header oauth_token "$http_Authorization";
location / {
root /usr/share/nginx/html;
}
}
}
---
apiVersion: v1
kind: Service
metadata:
annotations:
service.alpha.openshift.io/serving-cert-secret-name: plugin-serving-cert
name: kuadrant-console
namespace: kuadrant-console
labels:
app: kuadrant-console
app.kubernetes.io/component: kuadrant-console
app.kubernetes.io/instance: kuadrant-console
app.kubernetes.io/name: kuadrant-console
app.kubernetes.io/part-of: kuadrant-console
spec:
ports:
- name: 9443-tcp
protocol: TCP
port: 9443
targetPort: 9443
selector:
app: kuadrant-console
type: ClusterIP
sessionAffinity: None
---
apiVersion: console.openshift.io/v1alpha1
kind: ConsolePlugin
metadata:
name: kuadrant-console
spec:
displayName: 'Kuadrant Console Plugin'
service:
name: kuadrant-console
namespace: kuadrant-console
port: 9443
basePath: '/'

0 comments on commit 6772d80

Please sign in to comment.