def METHOD_NAME(app_spec):
    return app_spec._replace(
        ports=[
            PortSpec(protocol="tcp", name="thrift", port=7999, target_port=7999),
        ],
        health_checks=HealthCheckSpec(
            liveness=CheckSpec(
                tcp=TcpCheckSpec(port=7999),
                http=None,
                execute=None,
                initial_delay_seconds=10,
                period_seconds=10,
                success_threshold=1,
                failure_threshold=3,
                timeout_seconds=1,
            ),
            readiness=CheckSpec(
                tcp=TcpCheckSpec(port=7999),
                http=None,
                execute=None,
                initial_delay_seconds=10,
                period_seconds=10,
                success_threshold=1,
                failure_threshold=3,
                timeout_seconds=1,
            ),
        ),
        ingresses=[],
    )