New to Kubepack? Please start here.
Using Kubepack as an App Publisher
This section contains tutorial on how app developer can use Pack to expose theirs app and deploy in kubernetes cluster.
Developer creates a git repo which contains all required yamls and dependency-list.yaml file.
Before You Begin
Get the overview and what various fields means, read dependency-list.yaml tutorial.
Deploy with Pack
If you want your application to usable through pack,
Needs to follow below instruction:
- First, create a git repository
- Add all the required yaml to repository
- Add dependency-list.yaml file. This is mandatory file to Pack
Now, anyone can use this repository to deploy your application in their cluster.
apiVersion: extensions/v1beta1 kind: Deployment metadata: name: pack-deploy labels: app: kubepack spec: replicas: 3 selector: matchLabels: app: kubepack template: metadata: labels: app: kubepack spec: containers: - name: nginx image: nginx:1.7.9 ports: - containerPort: 80 volumeMounts: - mountPath: /tmp/pack name: pack volumes: - name: pack secret: secretName: pack-test
apiVersion: v1 kind: Secret metadata: name: pack-secret labels: app: kubepack type: Opaque data: username: YWRtaW4= password: MWYyZDFlMmU2N2Rm
apiVersion: v1 kind: Service metadata: labels: app: kubepack name: pack-service spec: ports: - port: 80 selector: app: kubepack
So that, others can use it through pack cli.