Skip to content

Instantly share code, notes, and snippets.

@mak2099
Created April 4, 2018 20:47
Show Gist options
  • Save mak2099/09b2ec7fc38241fa80620e32bde125d4 to your computer and use it in GitHub Desktop.
Save mak2099/09b2ec7fc38241fa80620e32bde125d4 to your computer and use it in GitHub Desktop.
myservice.json
{
"EndpointSpec": {
"Ports": [
{
"Protocol": "tcp",
"PublishedPort": 8080,
"TargetPort": 80
}
]
},
"Name": "demo",
"TaskTemplate": {
"ContainerSpec": {
"Image": "nginx:latest",
"Secrets": [
{
"File": {
"GID": "33",
"Mode": 384,
"Name": "test_secret",
"UID": "33"
},
"SecretID": "54jjrkdeau2p0imm9zov6fw7r",
"SecretName": "test_secret"
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment