Skip to content

v1.0.0-beta.9

Compare
Choose a tag to compare
@maslow maslow released this 07 Jun 09:51
· 560 commits to main since this release

What's Changed

New Contributors

Full Changelog: v1.0.0-beta.8...v1.0.0-beta.9

Key Points

  • laf has implemented a new measuring and billing mechanism. #1187
  • remove prisma in laf server
  • support history mode route in websitehosting
  • support multiple-level url for cloud function
  • add laf ai polit

Migration Guides

Upgrade the server and web image version:

run this in your master node to upgrade laf-server & laf-web

kubectl set image deployments/laf-server -n laf-system \
	laf-server=docker.io/lafyun/laf-server:1.0.0-beta.9

kubectl set image deployments/laf-web -n laf-system \
	laf-web=docker.io/lafyun/laf-web:1.0.0-beta.9

To support new billing mechanism, you should add a new field to Application collection in system database.

run this in your mongodb shell.

use sys_db;
db.Application.updateMany({}, {
    $set: { 
        billingLockedAt: new Date('1970-01-01T00:00:00.000Z')
    }
})

To support multi-level url path in cloud function:

run this in your mongodb shell to upgrade runtime version

 use sys_db;

// runtime version
const version = "1.0.0-beta.9"
const main_image = `docker.io/lafyun/runtime-node:${version}`
const init_image = `docker.io/lafyun/runtime-node-init:${version}`

db.Runtime.updateOne({ latest: true }, {
  $set: {
    version: version,
    image: {
      main: main_image,
      init: init_image
    }
  }
})

db.Runtime.find().pretty()

Add new environment to laf-server deployments:

kubectl edit deployment/laf-server -n laf-system
env:
    - name: METERING_DATABASE_URL
     value: >-
         mongodb://your-root-user:your-password@mongo-cluster-rs0-0.mongo-cluster-rs0.default.svc.cluster.local:27017/sealos-resources?authSource=admin&replicaSet=rs0&w=majority