$ cat nginx.js
import k from 'kubernetes.js';
import std from 'std';
const container = k.Container('nginx', 'nginx:1.15.4');
const deployment = k.Deployment('nginx', 3, [container]);
std.log(deployment, { format: std.Format.YAML });
$ jk run nginx.js
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nginx
name: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
containers:
- image: nginx:1.15.4
name: nginx
metadata:
labels:
app: nginx-
Notifications
You must be signed in to change notification settings - Fork 28
Configuration as Code with ECMAScript
License
jkcfg/jk
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Configuration as Code with ECMAScript
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published