mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-30 02:46:30 +02:00
33 lines
770 B
Jsonnet
33 lines
770 B
Jsonnet
local utils = import '../utils.libsonnet';
|
|
|
|
function() {
|
|
local name = 'websocket-echo',
|
|
local image = 'pvtmert/websocketd:latest',
|
|
local command = ['--port', '80', 'tee'],
|
|
|
|
compose: {
|
|
services:
|
|
utils.ComposeService(name, {
|
|
image: image,
|
|
command: command,
|
|
}) +
|
|
utils.ComposeService(name + '-ready', {
|
|
image: 'jwilder/dockerize:0.6.1',
|
|
command: [
|
|
'-wait',
|
|
'tcp://' + name + ':80',
|
|
'-timeout',
|
|
'10m',
|
|
],
|
|
}),
|
|
volumes: {},
|
|
},
|
|
kubernetes: [
|
|
utils.KubernetesDeployment(name, image, command, [
|
|
{ name: 'http', containerPort: 80 },
|
|
]),
|
|
utils.KubernetesService(name, [
|
|
{ name: 'http', port: 80, targetPort: 'http' },
|
|
]),
|
|
],
|
|
}
|