We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data Validation: https://cuelang.org/docs/usecases/validation/
The text was updated successfully, but these errors were encountered:
$ cue export --out yaml input.cue
Sorry, something went wrong.
まずは deployment を簡単にラップしたい。
$ kubectl create deploy --dry-run=client -o yaml --image=nginx --replicas=3 app > deployment.yaml
timestamp とかを消す
apiVersion: apps/v1 kind: Deployment metadata: labels: app: app name: app spec: replicas: 3 selector: matchLabels: app: app template: metadata: labels: app: app spec: containers: - image: nginx name: nginx
cue に変換する
$ cue import deployment.yaml
deployment.cue が生成される
apiVersion: "apps/v1" kind: "Deployment" metadata: { labels: app: "app" name: "app" } spec: { replicas: 3 selector: matchLabels: app: "app" template: { metadata: labels: app: "app" spec: containers: [{ image: "nginx" name: "nginx" }] } }
cue から yaml を生成する
$ cue export --out yaml deployment.cue
ここから deployment.cue を書き換えていく。
https://engineering.mercari.com/en/blog/entry/20220127-kubernetes-configuration-management-with-cue/
No branches or pull requests
Data Validation: https://cuelang.org/docs/usecases/validation/
The text was updated successfully, but these errors were encountered: