$ 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 0
License
squaremo/jk
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 60.1%
- Go 31.6%
- Dockerfile 3.9%
- Shell 3.3%
- Makefile 1.1%