This content is associated with a legacy version of the Replicated product. For the current Replicated product documentation, see docs.replicated.com.
inline
An inline
asset is one that is specified directly in your Ship application’s spec.
Required Parameters
contents
- The contents of the filedest
- A path to which the file should be written when generating assets
Optional Parameters
mode
- Specifies file mode of the created asset, defaults to0644
. Make sure to include a leading0
if specifying an octal valuewhen
- This asset will be included when ‘when’ is omitted or true
Examples
assets:
v1:
- inline:
dest: install.sh
contents: >-
#!/bin/sh
kubectl apply -f ./deploy.yml -n {{repl ConfigOption "k8s_namespace"
}}
assets:
v1:
- inline:
dest: deploy.yml
contents: |+
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: api
spec:
replicas: 1
template:
metadata:
labels:
app: retraced
tier: api
spec:
volumes:
- name: var-run
hostPath:
path: /var/run/retraced/
imagePullSecrets:
- name: quayio
containers:
- name: api
image: quay.io/retracedhq/api:{{ tag }}
ports:
- containerPort: 3000